Group up existing components into elements
This commit is contained in:
6
elements/Input/InputFileUpload.pixy
Normal file
6
elements/Input/InputFileUpload.pixy
Normal file
@ -0,0 +1,6 @@
|
||||
component InputFileUpload(id string, label string, uploadType string, endpoint string)
|
||||
.widget-section
|
||||
label= label + ":"
|
||||
button.action(id=id, data-action="selectFile", data-trigger="click", data-endpoint=endpoint, data-type=uploadType)
|
||||
Icon("upload")
|
||||
span Select file
|
Reference in New Issue
Block a user