Is it possible to have a dynamic choice field with ng-admin? -


when creating or editing entity, possible have second choices field options dependent on first choices field?

for example, have categories , subcategories. choices/options subcategory field dependent on selected choice/option in category field.

in docs, there example categories , subcategories when attempt way shown, subcategories updated on page load , not change when different category specified. can find example through link below. https://github.com/marmelab/ng-admin/blob/master/doc/reference/field.md#-reference-field-type

the way have dynamic choice field si write new custom directive , use template field.

nga.field('my_field')     .template('<my-custom-field field="::field" values="::entry.values"></my-custom-field>'), 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -