new FloatingButton(buttonClass, tooltip, clickEvent, appInstance)
Parameters:
Name | Type | Description |
---|---|---|
buttonClass |
string | Custom string that identifies the SVG icon used on this button. This string is also added as a CSS class to the button. |
tooltip |
string | tooltip for the button, that will be displayed on hover and also used as alternative title for the image |
clickEvent |
function | custom callback when user clicks the button |
appInstance |
App | reference to the parent SVG element |
Members
-
$el :jQuery.element
-
jQuery element representing the button
-
$tooltip :jQuery.element
-
jQuery element representing the tooltip