It is requested to edit the Interacting with menus to support adding JavaScript code.
https://docs.whmcs.com/Editing_Client_Area_Menus#Hooksexample:
use WHMCS\View\Menu\Item as MenuItem;
# 添加侧栏文档:
https://docs.whmcs.com/Client_Area_Sidebars_Cheatsheet#Adding_an_Additional_Sidebar_Menu_Itemadd_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar)
{
if (!is_null($primarySidebar->getChild('My Domains Status Filter'))) {
$primarySidebar->getChild('My Domains Status Filter')
->addChild('Other Status')
->setLabel('Other Status')
->setUri("javascript:clickLeft('otherstatus')")
->setIcon('fa-globe')
->setOrder(50);
}
});
Post the first comment
Login to post a comment.