Skip to main content

Portal Plugin - Examples

Adding a Tab in the PBX Dashboard Page

https://portal.wazo.io

New PBX Dashboard Tab

await app.initialize();
const context = app.getContext();

document.getElementById('name').innerHTML = context.app.extra.record.auth.username;

Adding a New Tab in the PBX User Edition Form

https://portal.wazo.io

New PBX users tab

You may want to create your own page/form in a PBX form. See This section for more information.

await app.initialize();
const context = app.getContext();

// You'll find information about the PBX user in `context.app.extra.record`;
document.getElementById('name').innerHTML = context.app.extra.record.auth.username;