Example #1
0
<?php

require_once '../include/header.php';
require_once '../lib/Kendo/Autoload.php';
$panelbar = new \Kendo\UI\PanelBar('panelbar');
$panelbar->attr('style', 'width: 250px; margin: 20px auto;')->expandMode("single");
$metallica = new \Kendo\UI\PanelBarItem("Metallica - Master of Puppets 1986");
$metallica->expanded(true);
$metallica->addItem(new \Kendo\UI\PanelBarItem("Battery"), new \Kendo\UI\PanelBarItem("Master of Puppets"), new \Kendo\UI\PanelBarItem("The Thing That Should Not Be"), new \Kendo\UI\PanelBarItem("Welcome Home (Sanitarium)"), new \Kendo\UI\PanelBarItem("Disposable Heroes"), new \Kendo\UI\PanelBarItem("Leper Messiah"), new \Kendo\UI\PanelBarItem("Orion (Instrumental)"), new \Kendo\UI\PanelBarItem("Damage, Inc."));
$panelbar->addItem($metallica);
$ironmaiden = new \Kendo\UI\PanelBarItem("Iron Maiden - Brave New World 2000");
$ironmaiden->addItem(new \Kendo\UI\PanelBarItem("The Wicker Man"), new \Kendo\UI\PanelBarItem("Ghost Of The Navigator"), new \Kendo\UI\PanelBarItem("Brave New World"), new \Kendo\UI\PanelBarItem("Blood Brothers"), new \Kendo\UI\PanelBarItem("The Mercenary"), new \Kendo\UI\PanelBarItem("Dream Of Mirrors"), new \Kendo\UI\PanelBarItem("The Fallen Angel"), new \Kendo\UI\PanelBarItem("The Nomad"), new \Kendo\UI\PanelBarItem("Out Of The Silent Planet"), new \Kendo\UI\PanelBarItem("The Thin Line Between Love And Hate"));
$panelbar->addItem($ironmaiden);
$empty = new \Kendo\UI\PanelBarItem("Empty Item");
$panelbar->addItem($empty);
$ajax = new \Kendo\UI\PanelBarItem("Ajax Item");
$ajax->contentUrl("../content/web/panelbar/ajax/ajaxContent1.html");
$panelbar->addItem($ajax);
$error = new \Kendo\UI\PanelBarItem("Error Item");
$error->contentUrl("error.html");
$panelbar->addItem($error);
$panelbar->select("onSelect")->expand("onExpand")->expand("onExpand")->collapse("onCollapse")->activate("onActivate")->contentLoad("onContentLoad")->error("onError");
echo $panelbar->render();
?>


<script>
    function onSelect(e) {
        kendoConsole.log("Select: " + $(e.item).find("> .k-link").text());
    }
Example #2
0
        </li>
        <li>
            <input type="text" value="Item" id="appendText" class="k-textbox"/> <button class="appendItem k-button">Append</button>
        </li>
        <li>
            <input type="text" value="Item" id="beforeText" class="k-textbox"/> <button class="beforeItem k-button">Insert Before</button>
        </li>
        <li>
            <input type="text" value="Item" id="afterText" class="k-textbox"/> <button class="afterItem k-button">Insert After</button>
        </li>
    </ul>
</div>

<?php 
$panelbar = new \Kendo\UI\PanelBar('panelbar');
$panelbar->attr('style', 'margin-right: 220px;');
$first = new \Kendo\UI\PanelBarItem("First Item");
$first->expanded(true);
$first->addItem(new \Kendo\UI\PanelBarItem("Sub Item 1"), new \Kendo\UI\PanelBarItem("Sub Item 2"), new \Kendo\UI\PanelBarItem("Sub Item 3"), new \Kendo\UI\PanelBarItem("Sub Item 4"));
$panelbar->addItem($first);
$second = new \Kendo\UI\PanelBarItem("Second Item");
$second->addItem(new \Kendo\UI\PanelBarItem("Sub Item 1"), new \Kendo\UI\PanelBarItem("Sub Item 2"), new \Kendo\UI\PanelBarItem("Sub Item 3"), new \Kendo\UI\PanelBarItem("Sub Item 4"));
$panelbar->addItem($second);
$third = new \Kendo\UI\PanelBarItem("Third Item");
$third->addItem(new \Kendo\UI\PanelBarItem("Sub Item 1"), new \Kendo\UI\PanelBarItem("Sub Item 2"), new \Kendo\UI\PanelBarItem("Sub Item 3"), new \Kendo\UI\PanelBarItem("Sub Item 4"));
$panelbar->addItem($third);
$fourth = new \Kendo\UI\PanelBarItem("Fourth Item");
$fourth->addItem(new \Kendo\UI\PanelBarItem("Sub Item 1"), new \Kendo\UI\PanelBarItem("Sub Item 2"), new \Kendo\UI\PanelBarItem("Sub Item 3"), new \Kendo\UI\PanelBarItem("Sub Item 4"));
$panelbar->addItem($fourth);
$fifth = new \Kendo\UI\PanelBarItem("Fifth Item");
$fifth->addItem(new \Kendo\UI\PanelBarItem("Sub Item 1"), new \Kendo\UI\PanelBarItem("Sub Item 2"), new \Kendo\UI\PanelBarItem("Sub Item 3"), new \Kendo\UI\PanelBarItem("Sub Item 4"));
Example #3
0
<?php

require_once '../include/header.php';
require_once '../lib/Kendo/Autoload.php';
?>

<div class="demo-section">

<?php 
$panelbar = new \Kendo\UI\PanelBar('panelbar');
$panelbar->attr('accesskey', 'w')->expandMode("multiple");
$salesforecasts = new \Kendo\UI\PanelBarItem("Sales Forecasts");
$salesforecasts->addItem(new \Kendo\UI\PanelBarItem("Q1 Forecast"), new \Kendo\UI\PanelBarItem("Q2 Forecast"), new \Kendo\UI\PanelBarItem("Q3 Forecast"), new \Kendo\UI\PanelBarItem("Q4 Forecast"));
$projects = new \Kendo\UI\PanelBarItem("Projects");
$projects->addItem(new \Kendo\UI\PanelBarItem("New Business Plan"), $salesforecasts, new \Kendo\UI\PanelBarItem("Sales Reports"));
$panelbar->addItem($projects);
$programs = new \Kendo\UI\PanelBarItem("Programs");
$programs->addItem(new \Kendo\UI\PanelBarItem("Monday"), new \Kendo\UI\PanelBarItem("Tuesday"), new \Kendo\UI\PanelBarItem("Wednesday"), new \Kendo\UI\PanelBarItem("Thursday"), new \Kendo\UI\PanelBarItem("Friday"));
$panelbar->addItem($programs);
$communication = new \Kendo\UI\PanelBarItem("Communication");
$communication->enabled(false);
$panelbar->addItem($communication);
echo $panelbar->render();
?>

</div>

<ul class="keyboard-legend">
    <li>
        <span class="button-preview">
            <span class="key-button leftAlign wider"><a target="_blank" href="http://en.wikipedia.org/wiki/Access_key">Access key</a></span>
Example #4
0
<?php

require_once '../include/header.php';
require_once '../lib/Kendo/Autoload.php';
$panelbar = new \Kendo\UI\PanelBar('panelbar');
$panelbar->attr('style', 'width: 300px')->expandMode('single');
$teamMates = new \Kendo\UI\PanelBarItem();
$teamMates->text('My Teammates')->expanded(true)->startContent();
?>

<div style="padding: 10px;">
    <div class="teamMate">
        <img src="../content/web/panelbar/andrew.jpg" alt="Andrew Fuller">
        <h2>Andrew Fuller</h2>
        <p>Team Lead</p>
    </div>
    <div class="teamMate">
        <img src="../content/web/panelbar/nancy.jpg" alt="Nancy Leverling">
        <h2>Nancy Leverling</h2>
        <p>Sales Associate</p>
    </div>
    <div class="teamMate">
        <img src="../content/web/panelbar/robert.jpg" alt="Robert King">
        <h2>Robert King</h2>
        <p>Business System Analyst</p>
    </div>
</div>

<?php 
$teamMates->endContent();
$panelbar->addItem($teamMates);