FontAwesomeButton
Constructor
FontAwesomeButton
(
-
options
Parameters:
-
optionsObject-
iconStringthe Font Awesome icon class name (e.g: 'fa-search')
-
labelStringthe button label
-
handlerFunctioncallback function to call when the button is clicked
-
[id=GIAPI.random()]String optionalbutton <div> identifier
-
[width=135]Integer optionalbutton <div> width
-
[attr]Object[] optionalarray of attributes defined by objects like this
{'name':'attribute-name', 'value':'attribute-value'}to be added to the button. They can be used to store particular values to use in the 'click' function. E.g.:jQuery("#"+id).click(function(){ var attrValue = jQuery(this).attr('attribute-name');
-
Methods
css
(
-
target -
property -
value
Set the CSS property and its value to the given target
div
()
Returns this button <div>
enable
(
-
value
Enable/disables the button handler (this method does not affect the CSS)
Parameters:
-
valueBoolean
