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