Adding Floating Right Nav to Your Module

image2015-10-20 13_17_14.png

 

 

Please note that this is only available in FreePBX 13 and higher.

The FreePBX Floating Right Nav was added in version 13.0.4, to allow for consistency throughout FreePBX. To get started adding a floating right nav you can follow the steps below:

  1. Add a getRightNavBar method to you module class

    public function getRightNav($request) {     $html = 'your custom html';     return $html; }

You're done! An example below takes table data and removed pagination so that there is a constant flow of data (for extensions).

rnav.php

<table data-url="ajax.php?module=core&amp;command=getExtensionGrid&amp;type=all" data-cache="false" data-toggle="table" data-search="true" class="table" id="table-all-side">     <thead>         <tr>             <th data-sortable="true" data-field="extension"><?php echo _('Extension')?></th>             <th data-sortable="true" data-field="name"><?php echo _('Name')?></th>         </tr>     </thead> </table>

rnav.php is then feed to getRightNav

public function getRightNav($request) {     return load_view(__DIR__."/views/rnav.php",array()); }

Return to Documentation Home I Return to Sangoma Support