Button properties
type | (string) the type of a control, set it to "button" |
name | (string) the name of a control |
id | (string) the id of a control, auto-generated if not set |
text | (string) the text label of a button |
submit | (boolean) enables the button to send form data to a server |
url | (string) the URL the post request with form data will be sent to (if the submit property is set to true) Related Sample: Form. All controls |
width | (string|number|"content") the width of a control |
height | (string|number|"content") the height of a control |
css | (string) adds style classes to a control |
disabled | (boolean) defines whether a control is enabled (false) or disabled (true) |
hidden | (boolean) defines whether a control is hidden |
icon | (string) an icon of the button |
view | (string) defines the look of a button: "flat"|"link" |
size | (string) defines the size of a button: "small"|"medium" |
color | (string) defines the color scheme of a button: "danger"|"secondary"|"primary"|"success" |
full | (boolean) extends a button to the full width of a form |
circle | (boolean) makes the corners of a button round |
loading | (boolean) adds a spinner into a button |
padding | (string|number) sets padding between a cell and a border of a button control |