Triggered when a button in the toolbar is clicked. this: the element the toolbar is attached to You can listen for these events using the. You can also set individual toolbar options using data attributes on the buttons.īelow are a list of events that are triggered when certain events happen with the toolbar. This will generally be used when attaching toolbars to elements other than standard buttons.Īdvanced Usage Use data attributes to attach a single toolbar to many elements. If you want to adjust the position of where the toolbar appears (closer or further away from the element) then you can use this settings.
Use when the event option is set to click. Use the options 'click' or 'hover'.Ĭhoose if you want the toolbar to hide when anywhere outside the toolbar is clicked. Default: top.Ĭhoose if you want the toolbar to show on hover, or on click. Select either 'top', 'bottom', 'left' or 'right. Indicates the display position of the toobar relative to the element its attached agaisnt. The ID of the element containing the icons HTML. Define any javascript for icon actions before calling the toolbar.