You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think Flavour would benefit from a new component that automatically populates a select with enum value options, and binds the select to an enum value in the view class.
This can be done manually, but it involves several steps:
Showing the values can be done manually using std:foreach iterating over the enum values.
The property value can be bound via the 'select' attribute of the option
Bidirectional binding can handle change events to set the value back to the property in the view class.
The text was updated successfully, but these errors were encountered:
I'm trying out the bidirectional binding, thanks for showing me that.
I think a neat enhancement would be to automatically generate the elements from the enum values. Adding spaces in between camel-cased words could work for the displayed names. I'll see if I can come up with a reusable component.
ScraM-Team
changed the title
Proposal: Component to bind enum properties to select/option
Proposal: Component to bind enum properties to select/option [GSoC?]
Feb 12, 2019
ScraM-Team
changed the title
Proposal: Component to bind enum properties to select/option [GSoC?]
Proposal: Component to bind enum properties to select/option
Feb 12, 2019
I think Flavour would benefit from a new component that automatically populates a select with enum value options, and binds the select to an enum value in the view class.
This can be done manually, but it involves several steps:
The text was updated successfully, but these errors were encountered: