mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
6cd5bf2f3f
Improved layout reusability Moved layout styles to its own stylesheet Added scrollable panels |
||
---|---|---|
.. | ||
index.js | ||
README.md | ||
styles.scss |
FormActionComponent
Used for form actions. For example a submit button.
Props
handleClick (function - required)
The handler for when a button is clicked
Arguments
- event - the click event
label (string)
The text to display on the button.
id (string)
The html id attribute.
type (string)
Used for the button's type
attribute. Defaults to button
bootstrapButtonStyle (string)
The style of button to be shown, adds a class btn-{style}
to the button. Defaults to secondary
.
Recommended values are:
- 'danger'
- 'success'
- 'primary'
- 'link'
- 'secondary'
- 'success-outline'
icon (string)
The icon to be used on the button, adds font-icon-{icon}
class to the button. See available icons here.
loading (boolean)
If true, replaces the text/icon with a loading icon.
disabled (boolean)
If true, gives the button a visually disabled state and disables click events.
extraClass (string)
Add extra custom classes