Button
Displays a standard button.
- type
- 
(string) Must be equals to button. 
- label
- 
(string) The label to display next to the field. 
- help
- 
(string) An optional text to describe the purpose of the field. 
- text
- 
(string) The text to display inside the button. 
- type
- 
(string) The button type ("button" or "submit"). If not specified the default type will be used (button). 
- id
- 
(string) An optional field ID. 
- class
- 
(string) An optional field class suffix. 
- disabled
- 
(bool) Whether the button should be disabled or not. 
- style
- 
(string) A custom CSS style to apply to the text input. 
- onclick
- 
(string) Defines the onclick attribute with the provided callback. 
- data
- 
(string) A string of data- concatenated attributes. 
- hidden
- 
(bool) True to avoid displaying the label of the field. 
[
    'trigger' => [
        'type' => 'button',
        'label' => 'Click Me!',
		'onclick' => 'alert("You clicked me!")',
    ]
]Changelog
| Version | Description | 
|---|---|
| 1.3 | Introduced. | 
			Last Update: 2023-12-19
		
		
				
					
											Helpful?