EnumListAttribute
?
#28
Labels
Area: Attribute Types
Related to attribute type definitions or plugins.
Priority: 3
Severity 0: Nice to Have
Status 0: Discussion
Needs further evaluation of requirements and prioritization.
Type: Feature
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 theenum
as a list. This is similar toTopicListAttribute
, but the data source would be anenum
, not e.g.Topic.Children
.TypeListAttribute
To support this, ideally the
EnumListAttribute
would 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.TypeListAttribute
which 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.
The text was updated successfully, but these errors were encountered: