awa.ui.Button Class
Extends Backbone.View
Defined in:
Module: awa.ui
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/ui/Button.js:4
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 optionalAction object for this button to bind to.
-
[options.actionType]String optionalset data-action-type on button for styling, hints, etc. options.action takes priority
-
[options.color]String optionalnot recommended but the alternate isnt ready yet
-
[options.contents]String optionaltext to display in button
-
[options.className]String optionaladds class to button element
-
[options.icon]String optionalicon type
-
[options.method]String optionalfunction name in parent change to hit. Finds first parent view with this function
-
[options.callback]String optionaldata-event attribute
-
[options.align]String optionalstyling for left or right alignment, not recommended
-
[options.tip]String optionalLonger text description that shows on hover.
-
[options.type]String optional -
[options.className]String optionaladded to class of element. Helps with grabbing the element through jquery and styling.
-
[options.hidden]Boolean optionalnot recommended since the way the element is hidden may change.