Group up existing components into elements
This commit is contained in:
4
elements/Input/InputText.pixy
Normal file
4
elements/Input/InputText.pixy
Normal file
@ -0,0 +1,4 @@
|
||||
component InputText(id string, value string, label string, placeholder string, maxLength int)
|
||||
.widget-section
|
||||
label(for=id)= label + ":"
|
||||
input.widget-ui-element.action(id=id, data-field=id, type="text", value=value, placeholder=placeholder, title=placeholder, data-action="save", data-trigger="change", maxlength=maxLength)
|
Reference in New Issue
Block a user