Module: addon/components/sl-button

Extends

  • ember/Component
  • ember-stream/mixins/stream-enabled
  • module:mixins/sl-tooltip-enabled

Members

(inner) attributeBindings :Array.<String>

Type:
  • Array.<String>
Source:

(inner) bubbles :Boolean

Whether or not the button should bubble actions to its parent

Type:
  • Boolean
Default Value:
  • true
Source:

(inner) classNameBindings :Array.<String>

Type:
  • Array.<String>
Source:

(inner) classNames :Array.<String>

Type:
  • Array.<String>
Source:

(inner) disableOnAjax :Boolean

Whether or not the button should be disabled during AJAX activity

Type:
  • Boolean
Default Value:
  • false
Source:

(inner) hideOnAjax :Boolean

Whether or not the button should be hidden during AJAX activity

Type:
  • Boolean
Default Value:
  • false
Source:

(inner, nullable) label :String

Text to apply to the button label

It is preferred you use this to set your "default" text rather than inactiveLabelText, which will take this value as a default.

Type:
  • String
Default Value:
  • null
Source:

(inner) layout :Object

Type:
  • Object
Source:

(inner) pending :Boolean

Whether the button is in a "pending" state

Type:
  • Boolean
Default Value:
  • false
Source:

(inner, nullable) pendingLabel :String

The text to display during AJAX activity

Type:
  • String
Default Value:
  • null
Source:

(inner, nullable) showModalWithStreamName :String

The name of a registered modal stream to trigger opening of

Type:
  • String
Default Value:
  • null
Source:

(inner) size :Size

The size of the button

Type:
  • Size
Source:

(inner) tagName :String

Type:
  • String
Default Value:
  • 'button'
Source:

(inner) theme :Theme

The bootstrap "theme" name

Type:
  • Theme
Source:

Methods

(inner) click() → {Boolean}

Source:
Throws:

Thrown if the modal is not found in modal service

Type
ember.assert
Returns:
  • The bubbles property value
Type
Boolean

(inner) currentLabel() → (nullable) {String}

The current label text for the button

Source:
Observes:
  • label, pending, pendingLabel
Returns:
Type
String

(inner) sizeClass() → (nullable) {String}

Converted size string to Bootstrap button class

Source:
Observes:
  • size
Throws:

Thrown if the supplied size value is not one defined in the enum Size

Type
ember.assert
Returns:
Type
String

(inner) themeClass() → {String}

Converted theme string to Bootstrap button class

Source:
Observes:
  • theme
Throws:

Thrown if the supplied theme value is one not defined in the enum Theme

Type
ember.assert
Returns:

Defaults to "btn-default"

Type
String