These are chat archives for openseadragon/openseadragon

17th
Jun 2016
sickrandir
@sickrandir
Jun 17 2016 09:09
it worked! thanks Ian! Another question? Is there a method to bind controls that are rendered on the viewer like the standard controls?
Ian Gilman
@iangilman
Jun 17 2016 16:28
@sickrandir Like adding a new button to the viewer's button bar?
Try making an OpenSeadragon.Button and adding it to the viewer.buttons, which is an OpenSeadragon.ButtonGroup.
Ian Gilman
@iangilman
Jun 17 2016 16:34
Hmm, looks like ButtonGroup doesn't have a facility for adding things after the fact. Try viewer.addControl instead.
Man, this part of the code could use some better documentation! Anyway, here's the code: http://openseadragon.github.io/docs/openseadragon.js.html#line6516
So it looks like you don't create a Button object, you just pass an element and options into addControl.