Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
ons-splitter on preopen method
-
Hello.
On version onsen1 it was possible to trigger the method on(eventName, listener) for the element ons-sliding-menu.
Which is the equivalent for the element ons-splitter on onsen2? We are trying to find a solution but with no luck.
Thanks for your support.
-
@philippogol Most of the events are now part of
ons-splitter-side
element, notons-splitter
. You can useon
,once
andoff
but it is better to use event handlers likeons-preopen
orons-postclose
.
-
@Fran-Diox thanks!! can you please show me an example? I would like to implement the method on a controller but the usual menu.on(‘preopen’,… is not working.
-
-
@Fran-Diox great thanks!! :)
PD: would like to set the post as solved