APIs

Show:

Constructor

awa.ui.Button

(
  • [options.action]
  • [options.actionType]
  • [options.color]
  • [options.contents]
  • [options.className]
  • [options.icon]
  • [options.method]
  • [options.callback]
  • [options.align]
  • [options.tip]
  • [options.type]
  • [options.className]
  • [options.hidden]
)

Parameters:

  • [options.action] awa.mvc.Action optional

    Action object for this button to bind to.

  • [options.actionType] String optional

    set data-action-type on button for styling, hints, etc. options.action takes priority

  • [options.color] String optional

    not recommended but the alternate isnt ready yet

  • [options.contents] String optional

    text to display in button

  • [options.className] String optional

    adds class to button element

  • [options.icon] String optional

    icon type

  • [options.method] String optional

    function name in parent change to hit. Finds first parent view with this function

  • [options.callback] String optional

    data-event attribute

  • [options.align] String optional

    styling for left or right alignment, not recommended

  • [options.tip] String optional

    Longer text description that shows on hover.

  • [options.type] String optional
  • [options.className] String optional

    added to class of element. Helps with grabbing the element through jquery and styling.

  • [options.hidden] Boolean optional

    not recommended since the way the element is hidden may change.

Item Index