mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
add custom button
This commit is contained in:
parent
59083b7669
commit
f393547d9e
@ -978,6 +978,17 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
this.forceRedraw();
|
||||
},
|
||||
|
||||
/**
|
||||
* Add custom button for this viewer.
|
||||
*
|
||||
* @functions
|
||||
* @param {Element} CustomButton A reference to an element.
|
||||
*/
|
||||
addButton: function( Custombutton ){
|
||||
this.buttonGroup.buttons.push(Custombutton);
|
||||
this.buttonGroup.element.appendChild(Custombutton.element);
|
||||
},
|
||||
|
||||
/**
|
||||
* @function
|
||||
* @returns {Boolean}
|
||||
|
Loading…
Reference in New Issue
Block a user