Skip to content

Toolbar

Add Button

Adds a button, which, on click, executes your custom Javascript function, passed in as 1st parameter.

Example

1
2
3
4
5
jQuery(document).ready(function() {
    AppGiniHelper.TV.addButton(function() {
        /* your javascript function here*/
    }, "icon", "text", variation);
});

Parameters

  • callback (Callable function)
    the function which will be executed on click

  • icon (string)
    Name of the icon without prefix, see Icons

  • text (string)
    Button text

  • variation
    See Variation

  • prompt (string, optional, addLink only)
    Message text for confirmation prompt

  • target (string, optional, addLink only)
    Browser tab target, for example "_self" (default), "_blank" (new tab) or any other_string

  • fn (function, optional)
    Callback function for more detailed customization per row. See "Callback Example" at the bottom of this page.

See also