Group up existing components into elements
This commit is contained in:
6
elements/Input/InputSelection.pixy
Normal file
6
elements/Input/InputSelection.pixy
Normal file
@ -0,0 +1,6 @@
|
||||
component InputSelection(id string, value string, label string, placeholder string, options []*arn.Option)
|
||||
.widget-section
|
||||
label(for=id)= label + ":"
|
||||
select.widget-ui-element.action(id=id, data-field=id, value=value, title=placeholder, data-action="save", data-trigger="change")
|
||||
each option in options
|
||||
option(value=option.Value)= option.Label
|
Reference in New Issue
Block a user