Esempio n. 1
0
        </li>
    </ul>
</div>

<div style="width: 500px;">
<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip');
$baseball = new \Kendo\UI\TabStripItem();
$baseball->text("Baseball")->selected(true)->content("Baseball is a bat-and-ball sport played between two teams of nine players each. The aim is to score runs by hitting a thrown ball with a bat and touching a series of four bases arranged at the corners of a ninety-foot diamond. Players on the batting team take turns hitting against the pitcher of the fielding team, which tries to stop them from scoring runs by getting hitters out in any of several ways. A player on the batting team can stop at any of the bases and later advance via a teammate's hit or other means. The teams switch between batting and fielding whenever the fielding team records three outs. One turn at bat for each team constitutes an inning and nine innings make up a professional game. The team with the most runs at the end of the game wins.");
$golf = new \Kendo\UI\TabStripItem();
$golf->text("Golf")->content("Golf is a precision club and ball sport, in which competing players (or golfers) use many types of clubs to hit balls into a series of holes on a golf course using the fewest number of strokes. It is one of the few ball games that does not require a standardized playing area. Instead, the game is played on golf courses, each of which features a unique design, although courses typically consist of either nine or 18 holes. Golf is defined, in the rules of golf, as playing a ball with a club from the teeing ground into the hole by a stroke or successive strokes in accordance with the Rules.");
$swimming = new \Kendo\UI\TabStripItem();
$swimming->text("Swimming")->content("Swimming has been recorded since prehistoric times; the earliest recording of swimming dates back to Stone Age paintings from around 7,000 years ago. Written references date from 2000 BC. Some of the earliest references to swimming include the Gilgamesh, the Iliad, the Odyssey, the Bible, Beowulf, and other sagas. In 1578, Nikolaus Wynmann, a German professor of languages, wrote the first swimming book, The Swimmer or A Dialogue on the Art of Swimming (Der Schwimmer oder ein Zwiegespräch über die Schwimmkunst). Competitive swimming in Europe started around 1800, mostly using breaststroke.");
$snowboarding = new \Kendo\UI\TabStripItem();
$snowboarding->text("Snowboarding")->content("Snowboarding is a sport that involves descending a slope that is covered with snow on a snowboard attached to a rider's feet using a special boot set onto a mounted binding. The development of snowboarding was inspired by skateboarding, sledding, surfing and skiing. It was developed in the U.S.A. in the 1960s to 1970s and became a Winter Olympic Sport in 1998.");
$tabstrip->addItem($baseball, $golf, $swimming, $snowboarding);
echo $tabstrip->render();
?>
</div>

<script>
    $(document).ready(function() {
        var tabStrip = $("#tabstrip").data("kendoTabStrip");

        var getItem = function (target) {
                var itemIndex = target[0].value;

                return tabStrip.tabGroup.children("li").eq(itemIndex);
            },
            select = function(e) {
                if (e.type != "keypress" || kendo.keys.ENTER == e.keyCode)
Esempio n. 2
0
            <p>Cloudy weather in Moscow.</p>
        </div>
        <span class="cloudy">&nbsp;</span>
<?php 
$moscow->endContent();
$sydney = new \Kendo\UI\TabStripItem();
$sydney->text("sydney")->startContent();
?>
        <div class="weather">
            <h2>17<span>&ordm;C</span></h2>
            <p>Rainy weather in Sydney.</p>
        </div>
        <span class="rainy">&nbsp;</span>
<?php 
$sydney->endContent();
$tabstrip->addItem($paris, $newYork, $london, $moscow, $sydney);
// set animation
$animation = new \Kendo\UI\TabStripAnimation();
$openAnimation = new \Kendo\UI\TabStripAnimationOpen();
$openAnimation->effects("fadeIn");
$animation->open($openAnimation);
$tabstrip->animation($animation);
echo $tabstrip->render();
?>
</div>

<style scoped>
    #forecast {
        width: 360px;
        height: 337px;
        margin: 30px auto;
Esempio n. 3
0
require_once '../lib/Kendo/Autoload.php';
?>

<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip');
$tabstrip->attr("style", "margin-right: 220px;");
// attach events
$tabstrip->select("onSelect")->activate("onActivate")->contentLoad("onContentLoad")->error("onError");
// add items
$item = new \Kendo\UI\TabStripItem();
$item->text("First Tab")->selected(true)->startContent();
?>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer felis libero, lobortis ac rutrum quis, varius a velit. Donec lacus erat, cursus sed porta quis, adipiscing et ligula. Duis volutpat, sem pharetra accumsan pharetra, mi ligula cursus felis, ac aliquet leo diam eget risus. Integer facilisis, justo cursus venenatis vehicula, massa nisl tempor sem, in ullamcorper neque mauris in orci.</p>
<?php 
$item->endContent();
$tabstrip->addItem($item);
$item = new \Kendo\UI\TabStripItem();
$item->text("Second Tab")->startContent();
?>
    <p>Ut orci ligula, varius ac consequat in, rhoncus in dolor. Mauris pulvinar molestie accumsan. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean velit ligula, pharetra quis aliquam sed, scelerisque sed sapien. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam dui mi, vulputate vitae pulvinar ac, condimentum sed eros.</p>
<?php 
$item->endContent();
$tabstrip->addItem($item);
$item = new \Kendo\UI\TabStripItem();
$item->text("Third Tab")->startContent();
?>
    <p>Aliquam at nisl quis est adipiscing bibendum. Nam malesuada eros facilisis arcu vulputate at aliquam nunc tempor. In commodo scelerisque enim, eget sodales lorem condimentum rutrum. Phasellus sem metus, ultricies at commodo in, tristique non est. Morbi vel mauris eget mauris commodo elementum. Nam eget libero lacus, ut sollicitudin ante. Nam odio quam, suscipit a fringilla eget, dignissim nec arcu. Donec tristique arcu ut sapien elementum pellentesque.</p>
<?php 
$item->endContent();
$tabstrip->addItem($item);
$item = new \Kendo\UI\TabStripItem();
Esempio n. 4
0
$contact = new \Kendo\UI\TabStripItem();
$contact->text('Contact Information');
$contact->startContent();
?>
        <div class="employee-details">
            <ul>
                <li><label>Country:</label>#= Country #</li>
                <li><label>City:</label>#= City #</li>
                <li><label>Address:</label>#= Address #</li>
                <li><label>Home Phone:</label>#= HomePhone #</li>
            </ul>
        </div>
<?php 
$contact->endContent();
$tabstrip = new \Kendo\UI\TabStrip('tabstrip_#=EmployeeID#');
$tabstrip->addItem($orders, $contact)->animation(false);
echo $tabstrip->renderInTemplate();
?>
</script>

<script>
    function dataBound() {
        this.expandRow(this.tbody.find("tr.k-master-row").first());
    }
</script>

<style scoped="scoped">
    .employee-details ul
    {
        list-style:none;
        font-style:italic;
Esempio n. 5
0
<?php

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

<div class="wrapper">
<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip');
$dimensions = new \Kendo\UI\TabStripItem();
$dimensions->text("Dimensions & Weights")->selected(true)->contentUrl('../content/web/tabstrip/ajax/ajaxContent1.html');
$tabstrip->addItem($dimensions);
$engine = new \Kendo\UI\TabStripItem();
$engine->text("Engine")->contentUrl('../content/web/tabstrip/ajax/ajaxContent2.html');
$tabstrip->addItem($engine);
$chassis = new \Kendo\UI\TabStripItem();
$chassis->text("Chassis")->contentUrl('../content/web/tabstrip/ajax/ajaxContent3.html');
$tabstrip->addItem($chassis);
// set animation
$animation = new \Kendo\UI\TabStripAnimation();
$openAnimation = new \Kendo\UI\TabStripAnimationOpen();
$openAnimation->effects("fadeIn");
$animation->open($openAnimation);
$tabstrip->animation($animation);
echo $tabstrip->render();
?>
</div>

<style scoped>
    .wrapper {
        width: 270px;
Esempio n. 6
0
        <li>
            <input id="opacity" type="checkbox" checked="checked" /> <label for="opacity">animate opacity</label>
        </li>
    </ul>
</div>

<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip');
$tabstrip->attr("style", "margin-right: 220px;");
$item = new \Kendo\UI\TabStripItem();
$item->text("First Tab")->selected(true)->startContent();
?>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer felis libero, lobortis ac rutrum quis, varius a velit. Donec lacus erat, cursus sed porta quis, adipiscing et ligula. Duis volutpat, sem pharetra accumsan pharetra, mi ligula cursus felis, ac aliquet leo diam eget risus. Integer facilisis, justo cursus venenatis vehicula, massa nisl tempor sem, in ullamcorper neque mauris in orci.</p>
<?php 
$item->endContent();
$tabstrip->addItem($item);
$item = new \Kendo\UI\TabStripItem();
$item->text("Second Tab")->startContent();
?>
    <p>Ut orci ligula, varius ac consequat in, rhoncus in dolor. Mauris pulvinar molestie accumsan. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean velit ligula, pharetra quis aliquam sed, scelerisque sed sapien. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam dui mi, vulputate vitae pulvinar ac, condimentum sed eros.</p>
<?php 
$item->endContent();
$tabstrip->addItem($item);
$item = new \Kendo\UI\TabStripItem();
$item->text("Third Tab")->startContent();
?>
    <p>Aliquam at nisl quis est adipiscing bibendum. Nam malesuada eros facilisis arcu vulputate at aliquam nunc tempor. In commodo scelerisque enim, eget sodales lorem condimentum rutrum. Phasellus sem metus, ultricies at commodo in, tristique non est. Morbi vel mauris eget mauris commodo elementum. Nam eget libero lacus, ut sollicitudin ante. Nam odio quam, suscipit a fringilla eget, dignissim nec arcu. Donec tristique arcu ut sapien elementum pellentesque.</p>
<?php 
$item->endContent();
$tabstrip->addItem($item);
$item = new \Kendo\UI\TabStripItem();