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 -
Daniel
Greetings! I found this platform through a social media group and decided to see what it was all about. On spin king, I was greeted with a massive variety of high-stakes games and fun slots. I had a bit of a losing streak at the start, but my patience paid off with a huge jackpot win. The bonuses they offer are some of the best in the industry, making it much easier to grow your balance. It is a very trustworthy place for serious players who want real action.
Posted May 1 Kool