-
Notifications
You must be signed in to change notification settings - Fork 0
EnumListAttribute? #28
Copy link
Copy link
Open
Labels
Area: Attribute TypesRelated to attribute type definitions or plugins.Related to attribute type definitions or plugins.Priority: 3Severity 0: Nice to HaveStatus 0: DiscussionNeeds further evaluation of requirements and prioritization.Needs further evaluation of requirements and prioritization.Type: FeatureIntroduces a major area of functionality.Introduces a major area of functionality.
Metadata
Metadata
Assignees
Labels
Area: Attribute TypesRelated to attribute type definitions or plugins.Related to attribute type definitions or plugins.Priority: 3Severity 0: Nice to HaveStatus 0: DiscussionNeeds further evaluation of requirements and prioritization.Needs further evaluation of requirements and prioritization.Type: FeatureIntroduces a major area of functionality.Introduces a major area of functionality.
Establish a new attribute type which can be associated with a given
enum, and will display the options of theenumas a list. This is similar toTopicListAttribute, but the data source would be anenum, not e.g.Topic.Children.TypeListAttributeTo support this, ideally the
EnumListAttributewould dynamically identify all enums in scope, and allow the definition to select an enum, thus ensuring that the fully qualified name can be easily verified. This could be a challenge in that there may be a lot of enums in scope, thus necessitating e.g. a combo box. To support this, we'd likely need an e.g.TypeListAttributewhich could be filtered by type (e.g.,record,class,enum), extension (e.g.,ViewModel,Collection), as well as e.g. a backendTypeQueryService.View Component
On the view component itself, we'd need to be able to lookup that type, evaluate its values, and return them as a collection to be bound to the dropdown box source.