mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-18 07:43:13 +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();
|
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
|
* @function
|
||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user