The GEOSS Discovery And Access Broker APIs
Authors: Fabrizio Papeschi, Mattia Santoro, Stefano Nativi
API version: 1.4.3-beta

FontAwesomeButton

Module: UI

Constructor

FontAwesomeButton

(
  • options
)

Parameters:

  • options Object
    • icon String

      the Font Awesome icon class name (e.g: 'fa-search')

    • label String

      the button label

    • handler Function

      callback function to call when the button is clicked

    • [id=GIAPI.random()] String optional

      button <div> identifier

    • [width=135] Integer optional

      button <div> width

    • [attr] Object[] optional

      array 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');

Item Index

Methods

Methods

css

(
  • target
  • property
  • value
)

Set the CSS property and its value to the given target

Parameters:

div

()

Returns this button <div>

enable

(
  • value
)

Enable/disables the button handler (this method does not affect the CSS)

Parameters:

label

(
  • label
)

Set the given label

Parameters: