Get KoolPHP UI with 30% OFF!

KoolSlideMenu addChild opening url in new tab

André
Hello,
I have the following code:
    $ksm = new KoolSlideMenu("ksm");
    $ksm->scriptFolder =  "KoolControls/KoolSlideMenu";
    //Customers menu
    $ksm->addParent("root", "customers", "Customers", null, true);
    $ksm->addChild("customers","cust_manage","Manage", $url . "/MySys/customers_management.php");
    $ksm->addChild("customers","cust_report","Reports", $url . "/MySys/customers_reports.php");

Is it possible to open the KoolSlideMenu child options urls in new tabs?
I'm currently using the version 8.2 of KoolPHP.
Posted Jun 8, 2016 Kool
André
Ok, just figured the Client side API in the next day I submited the last post. I solved the situation using the following code:
$ksm = new KoolSlideMenu("ksm");
$ksm->scriptFolder =  "KoolControls/KoolSlideMenu";
//Customers menu
$ksm->addParent("root", "customers", "Customers", null, true);
$ksm->addChild("customers","cust_manage","Manage");
$ksm->addChild("customers","cust_report","Reports");
...

<form id="form1" method="post">
    <div class="box">
        <?php echo $ksm->Render();?>
    </div>
    <div class="clear"></div>
    <script type="text/javascript">
        ksm.registerEvent("OnSelect",function(sender, arg) {
        switch (arg.ItemId) {
            case "cust_manage":
                window.open('customer_manage.php', '_blank');
                break;
            case "cust_report":
                window.open('customer_report.php', '_blank');
                break;
            ...
        }
    </script>
</form>
Posted Jun 9, 2016 Kool -