Community
Participate
Working Groups
In the sapphire-gallery.xml sample, heterogeneous element properties or list properties, I would like to add an @Enablement annotation to IChildElementWithEnum type. Depending on the enablment condition, the "Child element with enum" choice will not appear in heterogeneous element properties and Add -> "Child element with enum" menu option will not be available for the heterogeneous list properties.
I think that rather than implementing type enablement, we should look at supporting a dynamic list of possible child element types for element and list properties. This would solve this requirement as you would be able to vary the set of possible types based on a criteria and would also enable extensibility where third parties wish to contribute new types to an existing model.
This has been implemented for a while now. Somehow the bug hasn't been resolved. See PossibleTypesService in the docs. Please verify.
Verify via sapphire-gallery's custom PossibleTypeService.