Skip to main content

Dialer


The widget is displayed in the right bottom corner in the UI.


Dialer


Triggers#

FunctionDescriptionExample
openTo open the dialer popupapp.interface.trigger(‘open’);
closeTo close the dialer popupapp.interface.trigger(close);
maximizeTo maximize the dialer popupapp.interface.trigger(‘maximize’);
minimizeTo minimize the dialer popupapp.interface.trigger(‘minimize’);
resizeResize or change position of the dialer popup using the provided dimensionsconst resizeOptions = {
width: ‘300px’,
height: ‘450px’,
top: null,
bottom: ‘0px’,
right: ‘20px’,
left: null
};
app.interface.trigger(‘resize’, resizeOptions);
styleChange the theme and text color of the dialer popupconst styleOptions = {
theme: ‘red’,
color: ‘white’
};

app.interface.trigger(‘style’, styleOptions);

Events#

EventDescriptionExample
dialer.activeThis event will be triggered whenever the dialer popup is opened/maximizedapp.on(‘dialer.active’, () => { console.log(‘dialer is opened’);
});
dialer.inactiveThis event will be triggered whenever the dialer popup is closed/minimizedapp.on(‘dialer.inactive, () => {
console.log(‘dialer is closed);
});
On This Topic