Readonly
iosReadonly
androidCreates an event emitter instance to listen for the actions
Call the function to remove the event
Gets as any arguments as it needs
Rest
...args: any[]Removes the specified event and invokes the callback after it is removed
Rest
...args: any[]Creates an event emitter instance to listen for the actions
Call the function to remove the event
Gets as any arguments as it needs
Rest
...args: any[]Adds 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.
Rest
...args: any[]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.
Rest
...args: any[]Triggered when a date is selected on the picker.
0.1
import DatePicker from '@smartface/native/ui/datepicker';
const datePicker = new DatePicker();
datePicker.on(DatePicker.Events.Selected, (params) => {
console.info('onDateSelected', params);
});
onDateSelected
Triggered when click cancel button on the picker.
3.1.3 onCancelled
import DatePicker from '@smartface/native/ui/datepicker';
const datePicker = new DatePicker();
datePicker.on(DatePicker.Events.Cancelled, () => {
console.info('onCancelled');
});
Generated using TypeDoc
Sets the initial date avaliable on the picker.
Method
setDate
Android
Ios
Since
0.1