How to append custom buttons when fullscreen of another div of visjs graph is triggered?
Ok, if I got what you need right you want to make the network go fullscreen and keep the button on the left and add custom buttons when fullscreen.
To do it, one solution I think it might work is to wrap your network and your buttons in a single div
. Then, instead of making only the network div
fullscreen, you would make the whole container go fullscreen. To toggle which buttons are visible, you can listen for the Full Screen Events and play around with the display
property in each button.
Check out this fiddle: http://jsfiddle.net/e7Lg99n9/
Here, I have a button to make it go full screen and then I have a button that is only showed when in full screen mode.
Is that enough for you?
Regards