示例#1
0
文件: api.php 项目: neevan1e/Done
<?php

require_once '../lib/Kendo/Autoload.php';
require_once '../include/header.php';
$tooltip = new \Kendo\UI\Tooltip('#tooltip');
// select the container for the tooltip
$tooltip->filter('div')->autoHide(false)->showOn('click')->position('right')->width(300);
$tooltip->startContent();
?>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<?php 
$tooltip->endContent();
echo $tooltip->render();
?>

    <div class="configuration k-widget k-header" style="z-index:10000">
        <span class="configHead">API Functions</span>
        <ul class="options">
            <li>
               Show at
            <?php 
$selector = new \Kendo\UI\DropDownList('selector');
$selector->change('change')->dataTextField('text')->dataValueField('value')->dataSource(array(array('value' => 1, 'text' => 'Target 1'), array('value' => 2, 'text' => 'Target 2')));
echo $selector->render();
?>
            </li>
        </ul>
    </div>

    <div id="tooltip">
        <div id="target1" class="k-group">Target 1</div>
示例#2
0
文件: index.php 项目: neevan1e/Done
<?php

require_once '../lib/Kendo/Autoload.php';
require_once '../include/header.php';
$tooltip = new \Kendo\UI\Tooltip('#agglomerations');
// select the container for the tooltip
$tooltip->filter('a')->width(120)->position('top');
echo $tooltip->render();
?>
    <div id="agglomerations">
        <a href="#" title="Canton - 26,300,000" id="canton"></a>
        <a href="#" title="Jakarta - 25,800,000" id="jakarta"></a>
        <a href="#" title="Mexico City - 23,500,000" id="mexico"></a>
        <a href="#" title="Delhi - 23,500,000" id="delhi"></a>
        <a href="#" title="Karachi - 22,100,000" id="karachi"></a>
        <a href="#" title="New York - 21,500,000" id="newyork"></a>
        <a href="#" title="S�o Paulo - 21,300,000" id="saopaolo"></a>
        <a href="#" title="Mumbay/Bombay - 21,100,000" id="bombay"></a>
        <a href="#" title="Los Angeles - 17,100,000" id="losangeles"></a>
        <a href="#" title="Osaka - 16,800,000" id="osaka"></a>
        <a href="#" title="Moscow - 16,200,000" id="moscow"></a>
    </div>

    <script>
        $(document).ready(function() {
            $("#agglomerations").data("kendoTooltip").show($("#canton"));
        });
    </script>

    <style scoped="scoped">
示例#3
0
<?php

require_once '../lib/Kendo/Autoload.php';
require_once '../include/header.php';
$tooltip = new \Kendo\UI\Tooltip('#products');
// select the container for the tooltip
$tooltip->filter('a')->width(120)->content(new \Kendo\Template('template'))->width(400)->height(200)->requestStart('requestStart')->position('top');
echo $tooltip->render();
?>
    <script>
        var urlFormat = "../content/web/tooltip/ajax/ajaxContent{0}.html";

        function requestStart(e) {
            e.options.url = kendo.format(urlFormat, e.target.data("id"));
        }
    </script>

    <script id="template" type="text/x-kendo-template">
        <img src="../content/web/foods/200/#=target.data('id')#.jpg" alt="#=target.data('title')#" />
        <p>#=target.data('title')#</p>
    </script>

    <div class="demo-section">
        <ul id="products" class="dairy-photos">
            <li>
                <a href="#" data-id="11" title="A cheese made in the artisan tradition by rural dairy farmers in the north of Spain"><img src="../content/web/foods/11.jpg" /> Queso de Cabrales</a>
            </li>
            <li>
                <a href="#" data-id="12" title="A cheese made in the La Mancha region of Spain from the milk of sheep of the Manchega breed"><img src="../content/web/foods/12.jpg" /> Queso<br /> Manchego</a>
            </li>
            <li>
示例#4
0
文件: events.php 项目: neevan1e/Done
<?php

require_once '../lib/Kendo/Autoload.php';
require_once '../include/header.php';
$tooltip = new \Kendo\UI\Tooltip('#autohide-true');
// select the container for the tooltip
$tooltip->show('onShow')->hide('onHide')->content('Hello!')->position('top');
echo $tooltip->render();
$tooltip = new \Kendo\UI\Tooltip('#autohide-false');
// select the container for the tooltip
$tooltip->show('onShow')->hide('onHide')->autoHide(false)->content('Hello!')->position('top');
echo $tooltip->render();
?>

    <div class="demo-section">
        <span id="autohide-true" class="key-button wider">Hover me!</span>
        <span id="autohide-false" class="key-button wider">Hover me too!</span>
    </div>

    <div class="demo-section">
        <h3 class="title">Console log</h3>
        <div class="console"></div>
    </div>

    <script>
        function onShow(e) {
            kendoConsole.log("event :: show");
        }

        function onHide(e) {
            kendoConsole.log("event :: hide");
示例#5
0
文件: ajax.php 项目: neevan1e/Done
<?php

require_once '../lib/Kendo/Autoload.php';
require_once '../include/header.php';
$tooltip = new \Kendo\UI\Tooltip('#products');
// select the container for the tooltip
$tooltip->filter('a')->width(120)->content(array("url" => "../content/web/tooltip/ajax/ajaxContent1.html"))->width(220)->height(280)->requestStart('requestStart')->position('top');
echo $tooltip->render();
?>
    <script>
        var urlFormat = "../content/web/tooltip/ajax/ajaxContent{0}.html";

        function requestStart(e) {
            e.options.url = kendo.format(urlFormat, e.target.data("id"));
        }
    </script>

    <div class="demo-section">
         <ul id="products" class="dairy-photos">
             <li>
             <a href="#" data-id="1"><img src="../content/web/foods/11.jpg" /></a>
             </li><li>
             <a href="#" data-id="2"><img src="../content/web/foods/12.jpg" /></a>
             </li><li>
             <a href="#" data-id="3"><img src="../content/web/foods/31.jpg" /></a>
             </li><li>
             <a href="#" data-id="4"><img src="../content/web/foods/32.jpg" /></a>
             </li><li>
             <a href="#" data-id="5"><img src="../content/web/foods/33.jpg" /></a>
             </li><li>
             <a href="#" data-id="6"><img src="../content/web/foods/59.jpg" /></a>