0
Scout.models.Equipment = Backbone.RelationalModel.extend({
  schema:{
    asset_number:{ type:'Text' },
    notes: 'TextArea',
    tag:{ type: 'Text', validators: ['required']}
  },
  defaults: {
    id: null,
    name: null,
  }
});

I want to add a legend to the scheme but the examples dont have a legend.

1 Answers1

1

While the main examples do not have any, There is some in the code

Here

For example

It is working in the page if you view it (it will run tests as well)

exussum
  • 18,275
  • 8
  • 32
  • 65