silverstripe-framework/admin/client/src/components/form-action
Paul Clarke 6cd5bf2f3f Preview panel as its own component, file preview styles, no preview message.
Improved layout reusability
Moved layout styles to its own stylesheet
Added scrollable panels
2016-04-21 11:03:42 +12:00
..
index.js API Moved frontend assets into admin/client/ 2016-04-20 21:13:10 +12:00
README.md API Moved frontend assets into admin/client/ 2016-04-20 21:13:10 +12:00
styles.scss Preview panel as its own component, file preview styles, no preview message. 2016-04-21 11:03:42 +12:00

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