Как я могу визуализировать тип объекта с помощью форм Backbone?
Определение:
schema: {
salutation: {
type: 'Select',
validators: ['required'],
editorClass: 'form-control',
isRequired: true,
title: 'Salutation',
},
address: {
type: 'Object',
subSchema: {
address: {
type: 'Text',
validators: ['required'],
editorClass: 'form-control',
isRequired: true,
title: 'Address',
},
}
},
И в моем шаблоне я использую data-fields
визуализировать поля:
<div data-fields="fieldname"></div>
Как я могу загрузить элементы из subSchema
?