Rainy weather in Paris.
Sunny weather in New York.
Sunny weather in London.
Cloudy weather in Moscow.
Rainy weather in Sydney.
<?php
require_once '../lib/Kendo/Autoload.php';
?>
<div class="demo-section k-content">
<?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>ºC</span></h2>
<p>Rainy weather in Paris.</p>
</div>
<span class="rainy"> </span>
<?php
$paris->endContent();
$newYork = new \Kendo\UI\TabStripItem();
$newYork->text("New York")
->startContent();
?>
<div class="weather">
<h2>29<span>ºC</span></h2>
<p>Sunny weather in New York.</p>
</div>
<span class="sunny"> </span>
<?php
$newYork->endContent();
$london = new \Kendo\UI\TabStripItem();
$london->text("London")
->startContent();
?>
<div class="weather">
<h2>21<span>ºC</span></h2>
<p>Sunny weather in London.</p>
</div>
<span class="sunny"> </span>
<?php
$london->endContent();
$moscow = new \Kendo\UI\TabStripItem();
$moscow->text("Moscow")
->startContent();
?>
<div class="weather">
<h2>16<span>ºC</span></h2>
<p>Cloudy weather in Moscow.</p>
</div>
<span class="cloudy"> </span>
<?php
$moscow->endContent();
$sydney = new \Kendo\UI\TabStripItem();
$sydney->text("sydney")
->startContent();
?>
<div class="weather">
<h2>17<span>ºC</span></h2>
<p>Rainy weather in Sydney.</p>
</div>
<span class="rainy"> </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>
.sunny, .cloudy, .rainy {
display: block;
margin: 30px auto 10px;
width: 128px;
height: 128px;
background: url('../content/web/tabstrip/weather.png') transparent no-repeat 0 0;
}
.cloudy{
background-position: -128px 0;
}
.rainy{
background-position: -256px 0;
}
.weather {
margin: 0 auto 30px;
text-align: center;
}
#tabstrip h2 {
font-weight: lighter;
font-size: 5em;
line-height: 1;
padding: 0 0 0 30px;
margin: 0;
}
#tabstrip h2 span {
background: none;
padding-left: 5px;
font-size: .3em;
vertical-align: top;
}
#tabstrip p {
margin: 0;
padding: 0;
}
</style>