Example #1
0
<?php

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

<div class="demo-section">
    <h3>TabStrip with images</h3>
<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip');
$tabstrip->dataTextField("text")->dataImageUrlField("imageUrl")->dataContentField("content");
$baseball = new \Kendo\UI\TabStripItem();
$baseball->text("Baseball")->imageUrl("../content/shared/icons/sports/baseball.png")->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")->imageUrl("../content/shared/icons/sports/golf.png")->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")->imageUrl("../content/shared/icons/sports/swimming.png")->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")->imageUrl("../content/shared/icons/sports/snowboarding.png")->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->dataSource(array($baseball, $golf, $swimming, $snowboarding));
$tabstrip->animation(false);
echo $tabstrip->render();
$sortable = new \Kendo\UI\Sortable('#tabstrip ul.k-tabstrip-items');
$sortable->filter('li.k-item')->axis('x')->container('ul.k-tabstrip-items')->hint(new \Kendo\JavaScriptFunction('hint'))->start('onStart')->change('onChange');
echo $sortable->render();
?>
    <script>
        $(document).ready(function() {
            $("#tabstrip").data("kendoTabStrip").select(0);
        });
Example #2
0
$openAnimation->effects("fadeIn");
$animation->open($openAnimation);
$tabstrip->animation($animation);
echo $tabstrip->render();
?>
    <script>
        $(document).ready(function() {
            $("#tabstrip-images").data("kendoTabStrip").select(0);
        });
    </script>
</div>

<div class="demo-section">
    <h3>TabStrip with sprites</h3>
<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip-sprites');
$tabstrip->dataTextField("text")->dataSpriteCssClass("spriteCssClass")->dataContentField("content");
$brazil = new \Kendo\UI\TabStripItem();
$brazil->text("Brazil")->spriteCssClass("brazilFlag")->content("Brazil, officially the Federative Republic of Brazil, is the largest country in South America. It is the world's fifth largest country, both by geographical area and by population with over 192 million people. It is the only Portuguese-speaking country in the Americas and the largest lusophone country in the world.");
$india = new \Kendo\UI\TabStripItem();
$india->text("India")->spriteCssClass("indiaFlag")->content("India, officially the Republic of India, is a country in South Asia. It is the seventh-largest country by geographical area, the second-most populous country with over 1.2 billion people, and the most populous democracy in the world. Bounded by the Indian Ocean on the south, the Arabian Sea on the south-west, and the Bay of Bengal on the south-east, it shares land borders with Pakistan to the west; China, Nepal, and Bhutan to the north-east; and Burma and Bangladesh to the east. In the Indian Ocean, India is in the vicinity of Sri Lanka and the Maldives; in addition, India's Andaman and Nicobar Islands share a maritime border with Thailand and Indonesia.");
$netherlands = new \Kendo\UI\TabStripItem();
$netherlands->text("Netherlands")->spriteCssClass("netherlandsFlag")->content("The Netherlands is a constituent country of the Kingdom of the Netherlands, located mainly in North-West Europe and with several islands in the Caribbean. Mainland Netherlands borders the North Sea to the north and west, Belgium to the south, and Germany to the east, and shares maritime borders with Belgium, Germany and the United Kingdom. It is a parliamentary democracy organised as a unitary state. The country capital is Amsterdam and the seat of government is The Hague. The Netherlands in its entirety is often referred to as Holland, although North and South Holland are actually only two of its twelve provinces.");
$tabstrip->dataSource(array($brazil, $india, $netherlands));
// set animation
$animation = new \Kendo\UI\TabStripAnimation();
$openAnimation = new \Kendo\UI\TabStripAnimationOpen();
$openAnimation->effects("fadeIn");
$animation->open($openAnimation);
$tabstrip->animation($animation);
echo $tabstrip->render();
Example #3
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>

<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() {
Example #4
0
<?php

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

<div id="forecast">
<?php 
$tabstrip = new \Kendo\UI\TabStrip('tabstrip');
// set items
$paris = new \Kendo\UI\TabStripItem();
$paris->text("Paris")->selected(true)->startContent();
?>
        <div class="weather">
            <h2>17<span>&ordm;C</span></h2>
            <p>Rainy weather in Paris.</p>
        </div>
        <span class="rainy">&nbsp;</span>
<?php 
$paris->endContent();
$newYork = new \Kendo\UI\TabStripItem();
$newYork->text("New York")->startContent();
?>
        <div class="weather">
            <h2>29<span>&ordm;C</span></h2>
            <p>Sunny weather in New York.</p>
        </div>
        <span class="sunny">&nbsp;</span>
<?php 
$newYork->endContent();
$london = new \Kendo\UI\TabStripItem();
Example #5
0
<?php

require_once '../include/header.php';
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 
Example #6
0
//add grid to the tabstrip item content
$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;
Example #7
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;
Example #8
0
    <span class="configHead">Animation Settings</span>
    <ul class="options">
        <li>
            <input id="toggle" name="animation" type="radio" /> <label for="toggle">toggle animation</label>
        </li>
        <li>
            <input id="expand" name="animation" type="radio" checked="checked" /> <label for="expand">expand animation</label>
        </li>
        <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);