Dialer
The widget is displayed in the right bottom corner in the UI.
#
TriggersFunction | Description | Example |
---|---|---|
open | To open the dialer popup | app.interface.trigger(‘open’); |
close | To close the dialer popup | app.interface.trigger(close); |
maximize | To maximize the dialer popup | app.interface.trigger(‘maximize’); |
minimize | To minimize the dialer popup | app.interface.trigger(‘minimize’); |
resize | Resize or change position of the dialer popup using the provided dimensions | const resizeOptions = { width: ‘300px’, height: ‘450px’, top: null, bottom: ‘0px’, right: ‘20px’, left: null }; app.interface.trigger(‘resize’, resizeOptions); |
style | Change the theme and text color of the dialer popup | const styleOptions = { theme: ‘red’, color: ‘white’ }; app.interface.trigger(‘style’, styleOptions); |
#
EventsEvent | Description | Example |
---|---|---|
dialer.active | This event will be triggered whenever the dialer popup is opened/maximized | app.on(‘dialer.active’, () => { console.log(‘dialer is opened’); }); |
dialer.inactive | This event will be triggered whenever the dialer popup is closed/minimized | app.on(‘dialer.inactive, () => { console.log(‘dialer is closed); }); |