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

linux - Could not find a package configuration file provided by "Qt5Svg" -

simple.odata.client - Simple OData Client Unlink -