0

I added the following line in my "onLightbox" event but it doesn't do anything.

scheduler.config.buttons_right=[];
Karim Ali
  • 2,243
  • 6
  • 23
  • 31

2 Answers2

1

It need to be added before scheduler.init call ( outside of onLightbox event ) as this is a global configuration.

Aquatic
  • 5,084
  • 3
  • 24
  • 28
0

I think it also could be added inside "onBeforeLightbox" to get more control:

scheduler.attachEvent("onBeforeLightbox", function (id, mode, event) {
    scheduler.config.buttons_right = [];
}
Vahe92
  • 51
  • 5