FloatingButton(buttonClass, tooltip, clickEvent, appInstance)

FloatingButton represents a button that is used in the floating menu in the right bottom corner of the application. It may have a custom tooltip and callback on the click event

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