Gets as any arguments as it needs
Creates an event emitter instance to listen for the actions
Call the function to remove the event
Creates an event emitter instance to listen for the actions
Call the function to remove the event
Gets as any arguments as it needs
Creates an event emitter instance to listen for the actions
Call the function to remove the event
Removes the specified event and invokes the callback after it is removed
Optional
callback: EventListenerCallbackAdds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.
Adds a one-time listener function for the event named eventName to the beginning of the listeners array. The next time eventName is triggered, this listener is removed, and then invoked.
Readonly
iosReadonly
androidGets/sets position of the SliderDrawer.
= UI.SliderDrawer.Position.LEFT]
0.1
Readonly
stateGets state of the SliderDrawer.
1.1.8
Readonly
layoutGets/sets layout of the SliderDrawer.
= UI.FlexLayout]
0.1
Enables/disables the SliderDrawer.
= true]
0.1
Gets/Sets the height of SliderDrawer
Gets/Sets the width of SliderDrawer
Gets/Sets the background color of SliderDrawer
This event is called user opens the SliderDrawer.
onShow
0.1
import SliderDrawer from '@smartface/native/ui/sliderdrawer';
const sliderDrawer = new SliderDrawer();
sliderDrawer.on(SliderDrawer.Events.Show, () => {
console.info('onShow');
});
This event is called when user closes the SliderDrawer.
onHide
0.1
import SliderDrawer from '@smartface/native/ui/sliderdrawer';
const sliderDrawer = new SliderDrawer();
sliderDrawer.on(SliderDrawer.Events.Hide, () => {
console.info('onHide');
});
This event is called when SliderDrawer begins to load.
onLoad
0.1
import SliderDrawer from '@smartface/native/ui/sliderdrawer';
const sliderDrawer = new SliderDrawer();
sliderDrawer.on(SliderDrawer.Events.Load, () => {
console.info('onLoad');
});
Generated using TypeDoc
Creates an event emitter instance to listen for the actions
Returns
Call the function to remove the event