예제 #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
파일: template.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(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>
예제 #3
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">
예제 #4
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>