当前位置: 首页>>代码示例>>PHP>>正文


PHP javascript::addData方法代码示例

本文整理汇总了PHP中javascript::addData方法的典型用法代码示例。如果您正苦于以下问题:PHP javascript::addData方法的具体用法?PHP javascript::addData怎么用?PHP javascript::addData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javascript的用法示例。


在下文中一共展示了javascript::addData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: value

 /**
 * Specifies the selected date.
 * @var $dataAX[ 'value' ]: ( Date ) ( default: null )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/datepicker#configuration-value
 * 
 * @code
   Example
    <input id="datepicker" />
    <script>
    $("#datepicker").kendoDatePicker({
        value: new Date(2011, 0, 1)
    });
    </script>
 * @endcode
 * @throws string type error
 */
 public function value($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("value" => $dataAX);
     if (is_array($dataAX['value'])) {
         $dateAsString = "";
         if (isset($dataAX['value']["Year"])) {
             $dateAsString .= "{$dataAX['value']["Year"]}, ";
         }
         if (isset($dataAX['value']["Month"])) {
             $dateAsString .= "{$dataAX['value']["Month"]}, ";
         }
         if (isset($dataAX['value']["Day"])) {
             $dateAsString .= "{$dataAX['value']["Day"]}, ";
         }
         if (isset($dataAX['value']["Hour"])) {
             $dateAsString .= "{$dataAX['value']["Hour"]}, ";
         }
         if (isset($dataAX['value']["Minute"])) {
             $dateAsString .= "{$dataAX['value']["Minute"]}, ";
         }
         if (isset($dataAX['value']["Second"])) {
             $dateAsString .= "{$dataAX['value']["Second"]}";
         }
         $dateAsString = "new Date ({$dateAsString});";
         parent::addData("value", $dateAsString);
         unset($dataAX['value']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['value'])) {
             throw new Exception("Type error - KendoUiDatePicker::value ( \$data[ 'value' ] type must be 'Date'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:52,代码来源:KendoUiDatePicker.class.php

示例2: target

 /**
 * Specifies the element on which ContextMenu should open. The default element is the document body.
 * @var $dataAX[ 'target' ]: ( String | jQuery ) ( default: "body" )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/contextmenu#configuration-target
 * 
 * @code
   Show the ContextMenu on element with ID target
    <div id="target">Target</div>
    <ul id="context-menu">
        <li>Item 1
            <ul>
                <li>Sub Item 1</li>
                <li>Sub Item 2</li>
                <li>Sub Item 3</li>
            </ul>
        </li>
        <li>Item 2
            <ul>
                <li>Sub Item 1</li>
                <li>Sub Item 2</li>
                <li>Sub Item 3</li>
            </ul>
        </li>
    </ul>
    <script>
        $("#context-menu").kendoContextMenu({
            target: "#target"
        });
    </script>
 * @endcode
 * @throws string type error
 */
 public function target($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("target" => $dataAX);
     if (is_string($dataAX['target'])) {
         parent::addData("target", $dataAX['target']);
         unset($dataAX['target']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['target'])) {
             throw new Exception("Type error - KendoUiContextMenu::target ( \$data[ 'target' ] type must be 'String' | 'jQuery'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:48,代码来源:KendoUiContextMenu.class.php

示例3: group

 /**
 * Used to group sets of draggable and drop targets. A draggable with the same group value as a drop target will be accepted by the drop target.
 * @var $dataAX[ 'group' ]: ( String ) ( default: "default" )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/droptarget#configuration-group
 * 
 * @code
   Example
    <div class="orange"></div>
    <div class="orange"></div>
    <div class="purple"></div>
    <div class="purple"></div>
    <div id="orangeArea"></div>
    <div id="purpleArea"></div>
    
    <script>
      $(".orange").kendoDraggable({
        group: "orangeGroup",
        hint: function(element) {
          return element.clone();
        }
      });
    
      $(".purple").kendoDraggable({
        group: "purpleGroup",
        hint: function(element) {
          return element.clone();
        }
      });
    
      $("#orangeArea").kendoDropTarget({ group: "orangeGroup", drop: onDrop });
      $("#purpleArea").kendoDropTarget({ group: "purpleGroup", drop: onDrop });
    
      function onDrop(e) {
        e.draggable.destroy();
        e.draggable.element.remove();
      }
    </script>
    <style>
      .orange, .purple{
        width: 50px;
        height: 50px;
        border: 2px solid green;
        margin: 5px;
      }
      #orangeArea, #purpleArea {
        width: 200px;
        height: 200px;
        border: 2px solid green;
        margin: 5px;
      }
      .orange, #orangeArea { background-color: orange; }
      .purple, #purpleArea { background-color: purple; }
    </style>
 * @endcode
 * @throws string type error
 */
 public function group($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("group" => $dataAX);
     if (is_string($dataAX['group'])) {
         parent::addData("group", $dataAX['group']);
         unset($dataAX['group']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['group'])) {
             throw new Exception("Type error - KendoUiDropTarget::group ( \$data[ 'group' ] type must be 'String'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:72,代码来源:KendoUiDropTarget.class.php

示例4: validateOnBlur

 /**
 * Determines if validation will be triggered when element loses focus. Default value is true.
 * @var $dataAX[ 'validateOnBlur' ]: ( Boolean )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/validator#configuration-validateOnBlur
 * 
 * @code
   &lt;form id="myform"&gt;<br>&nbsp;&nbsp;&lt;input name="username"/&gt; &lt;br /&gt;<br>&nbsp;&nbsp;&lt;button&gt;Validate&lt;/button&gt;<br>&lt;/form&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#myform").kendoValidator({<br>&nbsp;&nbsp;&nbsp;validateOnBlur: false<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function validateOnBlur($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("validateOnBlur" => $dataAX);
     if (is_bool($dataAX['validateOnBlur'])) {
         parent::addData("validateOnBlur", $dataAX['validateOnBlur']);
         unset($dataAX['validateOnBlur']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['validateOnBlur'])) {
             throw new Exception("Type error - KendoUiValidator::validateOnBlur ( \$data[ 'validateOnBlur' ] type must be 'Boolean'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:26,代码来源:KendoUiValidator.class.php

示例5: toolbar

 /**
 * If a <b><u>String</u></b> value is assigned to the <b><u>toolbar</u></b> configuration option, it will be treated as a single string template for the whole treelist Toolbar, and the string value will be passed as an argument to a <a href="/kendo-ui/api/framework/kendo#methods-template"><b><u>kendo.template()</u></b></a> function.
 * If a <b><u>Function</u></b> value is assigned (it may be a <b><u>kendo.template()</u></b> function call or a generic function reference), then the return value of the function will be used to render the treelist Toolbar contents.
 * If an <b><u>Array</u></b> value is assigned, it will be treated as the list of commands displayed in the treelist Toolbar. Commands can be custom or built-in ("create", "excel", "pdf").
 * The "create" command adds an empty data item to the treelist.
 * The "excel" command exports the treelist data in MS Excel format.
 * The "pdf" command exports the treelist data in PDF format.
 * @var $dataAX[ 'toolbar' ]: ( String | Function | Array )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#configuration-toolbar
 * 
 * @code
   &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: "&lt;p&gt;My string template in a paragraph.&lt;/p&gt;",<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: kendo.template("&lt;p&gt;My function template.&lt;/p&gt;"),<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "create" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * 
 * The name of the toolbar command. Either a built-in ("create", "excel", "pdf") or custom. The <b><u>name</u></b> is reflected in one of the CSS classes, which is applied to the button - <b><u>k-grid-name</u></b>. This class can be used to get a reference to the button (after TreeList initialization) and attach click handlers.
 * @var $dataAX[ 'toolbar' ][ 'name' ]: ( String )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#configuration-toolbar.name
 * 
 * @code
   &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "create" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "custom" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "create", text: "Add new" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * 
 * The text displayed by the command button. If not set the <a href="http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#configuration-toolbar.name">name</a>` option would be used as the button text instead.
 * @var $dataAX[ 'toolbar' ][ 'text' ]: ( String )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#configuration-toolbar.text
 * 
 * @code
   &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "create" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "custom" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="treeList"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>&nbsp;&nbsp;$("#treeList").kendoTreeList({<br>&nbsp;&nbsp;&nbsp;toolbar: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ name: "create", text: "Add new" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;columns: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "name" },<br>&nbsp;&nbsp;&nbsp;&nbsp;{ field: "age" }<br>&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;dataSource: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "Jane Doe", age: 30 },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ name: "John Doe", age: 33 }<br>&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function toolbar($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("toolbar" => $dataAX);
     if (is_string($dataAX['toolbar']['name'])) {
         parent::addData("toolbar.name", $dataAX['toolbar']['name']);
         unset($dataAX['toolbar']['name']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['toolbar']['name'])) {
             throw new Exception("Type error - KendoUiTreeList::toolbar ( \$data[ 'toolbar' ][ 'name' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['toolbar']['text'])) {
         parent::addData("toolbar.text", $dataAX['toolbar']['text']);
         unset($dataAX['toolbar']['text']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['toolbar']['text'])) {
             throw new Exception("Type error - KendoUiTreeList::toolbar ( \$data[ 'toolbar' ][ 'text' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['toolbar'])) {
         parent::addData("toolbar", $dataAX['toolbar']);
         unset($dataAX['toolbar']);
         parent::garbageCollector($dataAX);
     } else {
         if (is_array($dataAX['toolbar'])) {
             parent::addData("toolbar", $dataAX['toolbar']);
             unset($dataAX['toolbar']);
             parent::garbageCollector($dataAX);
         } else {
             if (isset($dataAX['toolbar'])) {
                 throw new Exception("Type error - KendoUiTreeList::toolbar ( \$data[ 'toolbar' ] type must be 'String' | 'Function' | 'Array'");
             }
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:83,代码来源:KendoUiTreeList.class.php

示例6: virtual


//.........这里部分代码省略.........
                    serverFiltering: true
                }
            });
        });
    </script>
 * @endcode
 * @code
    
    <input id="orders" style="width: 400px" />
    <script>
        $(document).ready(function() {
            $("#orders").kendoAutoComplete({
                template: '<span class="order-id">#= OrderID #</span> #= ShipName #, #= ShipCountry #',
                dataTextField: "ShipName",
                virtual: {
                    itemHeight: 26,
                    valueMapper: function(options) {
                        $.ajax({
                            url: "http://demos.telerik.com/kendo-ui/service/Orders/ValueMapper",
                            type: "GET",
                            data: convertValues(options.value),
                            success: function (data) {
                                //the **data** is either index or array of indices.
                                //Example:
                                // "Ernst Handel" -> 10 (index in the Orders collection)
                                // ["Ernst Handel", "Que Delícia"] -> [10, 14] (indices in the Orders collection)
    
                                options.success(data);
                            }
                        })
                    }
                },
                height: 520,
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"
                    },
                    pageSize: 80,
                    serverPaging: true,
                    serverFiltering: true
                }
            });
        });
    
        function convertValues(value) {
            var data = {};
    
            value = $.isArray(value) ? value : [value];
    
            for (var idx = 0; idx < value.length; idx++) {
                data["values[" + idx + "]"] = value[idx];
            }
    
            return data;
        }
    </script>
 * @endcode
 * @throws string type error
 */
 public function virtual($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("virtual" => $dataAX);
     if (is_numeric($dataAX['virtual']['itemHeight'])) {
         parent::addData("virtual.itemHeight", $dataAX['virtual']['itemHeight']);
         unset($dataAX['virtual']['itemHeight']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['virtual']['itemHeight'])) {
             throw new Exception("Type error - KendoUiAutoComplete::virtual ( \$data[ 'virtual' ][ 'itemHeight' ] type must be 'Number'");
         }
     }
     if (is_string($dataAX['virtual']['valueMapper'])) {
         parent::addData("virtual.valueMapper", $dataAX['virtual']['valueMapper']);
         unset($dataAX['virtual']['valueMapper']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['virtual']['valueMapper'])) {
             throw new Exception("Type error - KendoUiAutoComplete::virtual ( \$data[ 'virtual' ][ 'valueMapper' ] type must be 'Function'");
         }
     }
     if (is_bool($dataAX['virtual'])) {
         parent::addData("virtual", $dataAX['virtual']);
         unset($dataAX['virtual']);
         parent::garbageCollector($dataAX);
     } else {
         if (is_array($dataAX['virtual'])) {
             parent::addData("virtual", $dataAX['virtual']);
             unset($dataAX['virtual']);
             parent::garbageCollector($dataAX);
         } else {
             if (isset($dataAX['virtual'])) {
                 throw new Exception("Type error - KendoUiAutoComplete::virtual ( \$data[ 'virtual' ] type must be 'Boolean' | 'Object'");
             }
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:101,代码来源:KendoUiAutoComplete.class.php

示例7: items


//.........这里部分代码省略.........
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id: "hello",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "Insert",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attributes: { "class": "red" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ text: "Insert above", icon: "insert-n", attributes: { "class": "blue" } },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ text: "Insert between", icon: "insert-m" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ text: "Insert below", icon: "insert-s" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;<br>&lt;style&gt;<br>&nbsp;&nbsp;.red { background-color: red; }<br>&nbsp;&nbsp;.blue { color: blue; }<br>&lt;/style&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Foo", enable: false },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Bar" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "baz", text: "Baz" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Foo", icon: "tick" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Bar", icon: "note" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "baz", text: "Baz", icon: "clock" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [ {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Foo" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Bar" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "baz", text: "Baz" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;} ]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Foo", imageUrl: "foo.png" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Bar", imageUrl: "bar.png" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "baz", text: "Baz", imageUrl: "baz.png" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Foo", spriteCssClass: "foo" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Bar", spriteCssClass: "bar" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "baz", text: "Baz", spriteCssClass: "baz" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Foo" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Bar" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "baz", text: "Baz" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="toolbar"&gt;&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#toolbar").kendoToolBar({<br>&nbsp;&nbsp;&nbsp;&nbsp;items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: "splitButton",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menuButtons: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "foo", text: "Telerik", url: "http://www.telerik.com" },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ id: "bar", text: "Google", url: "http://www.google.com" }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function items($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("items" => $dataAX);
     if (is_array($dataAX['items']['buttons']['attributes'])) {
         parent::addData("items.buttons.attributes", $dataAX['items']['buttons']['attributes']);
         unset($dataAX['items']['buttons']['attributes']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['items']['buttons']['attributes'])) {
             throw new Exception("Type error - KendoUiToolBar::items ( \$data[ 'items' ][ 'buttons' ][ 'attributes' ] type must be 'Object'");
         }
     }
     if (is_string($dataAX['items']['buttons']['click'])) {
         parent::addData("items.buttons.click", $dataAX['items']['buttons']['click']);
         unset($dataAX['items']['buttons']['click']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['items']['buttons']['click'])) {
             throw new Exception("Type error - KendoUiToolBar::items ( \$data[ 'items' ][ 'buttons' ][ 'click' ] type must be 'Function'");
         }
     }
     if (is_bool($dataAX['items']['buttons']['enable'])) {
         parent::addData("items.buttons.enable", $dataAX['items']['buttons']['enable']);
         unset($dataAX['items']['buttons']['enable']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['items']['buttons']['enable'])) {
             throw new Exception("Type error - KendoUiToolBar::items ( \$data[ 'items' ][ 'buttons' ][ 'enable' ] type must be 'Boolean'");
         }
     }
     if (is_string($dataAX['items']['buttons']['group'])) {
         parent::addData("items.buttons.group", $dataAX['items']['buttons']['group']);
         unset($dataAX['items']['buttons']['group']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['items']['buttons']['group'])) {
             throw new Exception("Type error - KendoUiToolBar::items ( \$data[ 'items' ][ 'buttons' ][ 'group' ] type must be 'String'");
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:67,代码来源:KendoUiToolBar.class.php

示例8: template

 /**
 * Template for rendering each node.
 * @var $dataAX[ 'template' ]: ( String | Function )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview#configuration-template
 * 
 * @code
   &lt;div id="treeview"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#treeview").kendoTreeView({<br>&nbsp;template: "#= item.text # (#= item.inStock #)",<br>&nbsp;dataSource: [<br>&nbsp;&nbsp;{ text: "foo", inStock: 7, items: [<br>&nbsp;&nbsp;&nbsp;{ text: "bar", inStock: 2 },<br>&nbsp;&nbsp;&nbsp;{ text: "baz", inStock: 5 }<br>&nbsp;&nbsp;] }<br>&nbsp;]<br>});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function template($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("template" => $dataAX);
     if (is_string($dataAX['template'])) {
         parent::addData("template", $dataAX['template']);
         unset($dataAX['template']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['template'])) {
             throw new Exception("Type error - KendoUiTreeView::template ( \$data[ 'template' ] type must be 'String' | 'Function'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:26,代码来源:KendoUiTreeView.class.php

示例9: ignore

 /**
 * Specifies child elements for which the drag will not be initialized. Useful if the draggable contains input elements.
 * @var $dataAX[ 'ignore' ]: ( Selector )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/draggable#configuration-ignore
 * 
 * @code
   Example
    <div id="container">
        <input type="text" />
        <div>Foo</div>
    </div>
    
    <script>
      $("#container").kendoDraggable({
        ignore: "input",
        hint: function(element) {
          return element.clone();
        }
      });
    </script>
    <style>
        #container {
            width: 50px;
            height: 50px;
            border: 2px solid green;
            margin: 5px;
        }
    </style>
 * @endcode
 * @throws string type error
 */
 public function ignore($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("ignore" => $dataAX);
     if (is_string($dataAX['ignore'])) {
         parent::addData("ignore", $dataAX['ignore']);
         unset($dataAX['ignore']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['ignore'])) {
             throw new Exception("Type error - KendoUiDraggable::ignore ( \$data[ 'ignore' ] type must be 'Selector'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:47,代码来源:KendoUiDraggable.class.php

示例10: height

 /**
 * Specifies height of the window.
 * @var $dataAX[ 'height' ]: ( Number | String )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/window#configuration-height
 * 
 * @code
   &lt;div id="dialog"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#dialog").kendoWindow({<br>&nbsp;height: 400<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="dialog"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#dialog").kendoWindow({<br>&nbsp;height: "50%"<br>});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function height($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("height" => $dataAX);
     if (is_numeric($dataAX['height'])) {
         parent::addData("height", $dataAX['height']);
         unset($dataAX['height']);
         parent::garbageCollector($dataAX);
     } else {
         if (is_string($dataAX['height'])) {
             parent::addData("height", $dataAX['height']);
             unset($dataAX['height']);
             parent::garbageCollector($dataAX);
         } else {
             if (isset($dataAX['height'])) {
                 throw new Exception("Type error - KendoUiWindow::height ( \$data[ 'height' ] type must be 'Number' | 'String'");
             }
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:35,代码来源:KendoUiWindow.class.php

示例11: panes


//.........这里部分代码省略.........
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { collapsible: true, collapsedSize: "10%" }, {} ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { collapsible: true }, {} ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ {}, { contentUrl: "http://www.telerik.com/" } ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { max: "200px" }, {} ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { min: "100px" }, {} ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { resizable: false }, { resizable: false } ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { scrollable: false }, {} ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="splitter"&gt;<br>&nbsp;&lt;div&gt;Pane A&lt;/div&gt;<br>&nbsp;&lt;div&gt;Pane B&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script&gt;<br>$("#splitter").kendoSplitter({<br>&nbsp;panes: [ { size: "10%" }, {} ]<br>});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function panes($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("panes" => $dataAX);
     if (is_bool($dataAX['panes']['collapsed'])) {
         parent::addData("panes.collapsed", $dataAX['panes']['collapsed']);
         unset($dataAX['panes']['collapsed']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['panes']['collapsed'])) {
             throw new Exception("Type error - KendoUiSplitter::panes ( \$data[ 'panes' ][ 'collapsed' ] type must be 'Boolean'");
         }
     }
     if (is_string($dataAX['panes']['collapsedSize'])) {
         parent::addData("panes.collapsedSize", $dataAX['panes']['collapsedSize']);
         unset($dataAX['panes']['collapsedSize']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['panes']['collapsedSize'])) {
             throw new Exception("Type error - KendoUiSplitter::panes ( \$data[ 'panes' ][ 'collapsedSize' ] type must be 'String'");
         }
     }
     if (is_bool($dataAX['panes']['collapsible'])) {
         parent::addData("panes.collapsible", $dataAX['panes']['collapsible']);
         unset($dataAX['panes']['collapsible']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['panes']['collapsible'])) {
             throw new Exception("Type error - KendoUiSplitter::panes ( \$data[ 'panes' ][ 'collapsible' ] type must be 'Boolean'");
         }
     }
     if (is_string($dataAX['panes']['contentUrl'])) {
         parent::addData("panes.contentUrl", $dataAX['panes']['contentUrl']);
         unset($dataAX['panes']['contentUrl']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['panes']['contentUrl'])) {
             throw new Exception("Type error - KendoUiSplitter::panes ( \$data[ 'panes' ][ 'contentUrl' ] type must be 'String'");
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:67,代码来源:KendoUiSplitter.class.php

示例12: tooltip

 /**
  * Configuration of the <strong>RangeSlider</strong> tooltip.
  * @var $dataAX[ 'tooltip' ]: ( Object )
  * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/rangeslider#configuration-tooltip
  * 
  * Disables (<strong>false</strong>) or enables (<strong>true</strong>) the tooltip of the <strong>RangeSlider</strong>.
  * @var $dataAX[ 'tooltip' ][ 'enabled' ]: ( Boolean ) ( default: true )
  * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/rangeslider#configuration-tooltip.enabled
  * 
  * Format string for the text of the tooltip. Note: The applied format will also influence the appearance of the <strong>RangeSlider</strong> tick labels.
  * @var $dataAX[ 'tooltip' ][ 'format' ]: ( String ) ( default: "{0}" )
  * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/rangeslider#configuration-tooltip.format
  * 
  * Template of the tooltip.
  * @var $dataAX[ 'tooltip' ][ 'template' ]: ( String )
  * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/rangeslider#configuration-tooltip.template
  * @throws string type error
  */
 public function tooltip($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("tooltip" => $dataAX);
     if (is_bool($dataAX['tooltip']['enabled'])) {
         parent::addData("tooltip.enabled", $dataAX['tooltip']['enabled']);
         unset($dataAX['tooltip']['enabled']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['tooltip']['enabled'])) {
             throw new Exception("Type error - KendoUiRangeSlider::tooltip ( \$data[ 'tooltip' ][ 'enabled' ] type must be 'Boolean'");
         }
     }
     if (is_string($dataAX['tooltip']['format'])) {
         parent::addData("tooltip.format", $dataAX['tooltip']['format']);
         unset($dataAX['tooltip']['format']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['tooltip']['format'])) {
             throw new Exception("Type error - KendoUiRangeSlider::tooltip ( \$data[ 'tooltip' ][ 'format' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['tooltip']['template'])) {
         parent::addData("tooltip.template", $dataAX['tooltip']['template']);
         unset($dataAX['tooltip']['template']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['tooltip']['template'])) {
             throw new Exception("Type error - KendoUiRangeSlider::tooltip ( \$data[ 'tooltip' ][ 'template' ] type must be 'String'");
         }
     }
     if (is_array($dataAX['tooltip'])) {
         parent::addData("tooltip", $dataAX['tooltip']);
         unset($dataAX['tooltip']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['tooltip'])) {
             throw new Exception("Type error - KendoUiRangeSlider::tooltip ( \$data[ 'tooltip' ] type must be 'Object'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:61,代码来源:KendoUiRangeSlider.class.php

示例13: fileBrowser


//.........这里部分代码省略.........
 * 
 * The name of the field.
 * @var $dataAX[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'name' ][ 'field' ]: ( String )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-fileBrowser.schema.model.fields.name.field
 * 
 * Specifies the function which will parse the field value. If not set default parsers will be used.
 * @var $dataAX[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'name' ][ 'parse' ]: ( Function )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-fileBrowser.schema.model.fields.name.parse
 * 
 * Specifies the function which will parse the field value. If not set default parsers will be used.
 * @var $dataAX[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'type' ][ 'parse' ]: ( Function )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-fileBrowser.schema.model.fields.type.parse
 * 
 * The name of the field.
 * @var $dataAX[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'type' ][ 'field' ]: ( String )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-fileBrowser.schema.model.fields.type.field
 * 
 * The name of the field.
 * @var $dataAX[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'size' ][ 'field' ]: ( String )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-fileBrowser.schema.model.fields.size.field
 * 
 * Specifies the function which will parse the field value. If not set default parsers will be used.
 * @var $dataAX[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'size' ][ 'parse' ]: ( Function )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-fileBrowser.schema.model.fields.size.parse
 * @throws string type error
 */
 public function fileBrowser($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("fileBrowser" => $dataAX);
     if (is_string($dataAX['fileBrowser']['schema']['model']['fields']['name']['field'])) {
         parent::addData("fileBrowser.schema.model.fields.name.field", $dataAX['fileBrowser']['schema']['model']['fields']['name']['field']);
         unset($dataAX['fileBrowser']['schema']['model']['fields']['name']['field']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['fileBrowser']['schema']['model']['fields']['name']['field'])) {
             throw new Exception("Type error - KendoUiEditor::fileBrowser ( \$data[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'name' ][ 'field' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['fileBrowser']['schema']['model']['fields']['name']['parse'])) {
         parent::addData("fileBrowser.schema.model.fields.name.parse", $dataAX['fileBrowser']['schema']['model']['fields']['name']['parse']);
         unset($dataAX['fileBrowser']['schema']['model']['fields']['name']['parse']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['fileBrowser']['schema']['model']['fields']['name']['parse'])) {
             throw new Exception("Type error - KendoUiEditor::fileBrowser ( \$data[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'name' ][ 'parse' ] type must be 'Function'");
         }
     }
     if (is_string($dataAX['fileBrowser']['schema']['model']['fields']['type']['parse'])) {
         parent::addData("fileBrowser.schema.model.fields.type.parse", $dataAX['fileBrowser']['schema']['model']['fields']['type']['parse']);
         unset($dataAX['fileBrowser']['schema']['model']['fields']['type']['parse']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['fileBrowser']['schema']['model']['fields']['type']['parse'])) {
             throw new Exception("Type error - KendoUiEditor::fileBrowser ( \$data[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'type' ][ 'parse' ] type must be 'Function'");
         }
     }
     if (is_string($dataAX['fileBrowser']['schema']['model']['fields']['type']['field'])) {
         parent::addData("fileBrowser.schema.model.fields.type.field", $dataAX['fileBrowser']['schema']['model']['fields']['type']['field']);
         unset($dataAX['fileBrowser']['schema']['model']['fields']['type']['field']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['fileBrowser']['schema']['model']['fields']['type']['field'])) {
             throw new Exception("Type error - KendoUiEditor::fileBrowser ( \$data[ 'fileBrowser' ][ 'schema' ][ 'model' ][ 'fields' ][ 'type' ][ 'field' ] type must be 'String'");
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:67,代码来源:KendoUiEditor.class.php

示例14: tabPosition

 /**
 * Specifies the position of the widget tabs. Valid values are <b><u>"top"</u></b> (default), <b><u>"left"</u></b>, <b><u>"right"</u></b> and <b><u>"bottom"</u></b>. A <a href="http://docs.telerik.com/kendo-ui/api/javascript/ui/tabstrip#configuration-animation"><strong>fade animation</strong></a> is highly recommended with any of the non-default tab position settings.
 * @var $dataAX[ 'tabPosition' ]: ( String ) ( default: "top" )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/tabstrip#configuration-tabPosition
 * 
 * @code
   &lt;div id="tabstrip"&gt;<br>&nbsp;&nbsp;&lt;ul&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Tab 1&lt;/li&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Tab 2&lt;/li&gt;<br>&nbsp;&nbsp;&lt;/ul&gt;<br>&nbsp;&nbsp;&lt;div&gt;Content 1&lt;/div&gt;<br>&nbsp;&nbsp;&lt;div&gt;Content 2&lt;/div&gt;<br>&lt;/div&gt;<br><br>&lt;script&gt;<br>&nbsp;&nbsp;$("#tabstrip").kendoTabStrip({<br>&nbsp;&nbsp;&nbsp;&nbsp;tabPosition: "left",<br>&nbsp;&nbsp;&nbsp;&nbsp;animation: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; open: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; effects: "fadeIn"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function tabPosition($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("tabPosition" => $dataAX);
     if (is_string($dataAX['tabPosition'])) {
         parent::addData("tabPosition", $dataAX['tabPosition']);
         unset($dataAX['tabPosition']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['tabPosition'])) {
             throw new Exception("Type error - KendoUiTabStrip::tabPosition ( \$data[ 'tabPosition' ] type must be 'String'");
         }
     }
 }
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:26,代码来源:KendoUiTabStrip.class.php

示例15: messages


//.........这里部分代码省略.........
 * @endcode
 * 
 * The text of the "not equal" filter operator.
 * @var $dataAX[ 'messages' ][ 'fieldMenu' ][ 'operators' ][ 'neq' ]: ( String ) ( default: "Is not equal to" )
 * @see http://docs.telerik.com/kendo-ui/api/javascript/ui/pivotgrid#configuration-messages.fieldMenu.operators.neq
 * 
 * @code
   &lt;div id="pivotgrid"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#pivotgrid").kendoPivotGrid({<br>&nbsp;&nbsp;filterable: true,<br>&nbsp;&nbsp;height: 550,<br>&nbsp;&nbsp;messages: {<br>&nbsp;&nbsp;&nbsp;&nbsp;fieldMenu: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operators: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contains: "Contains"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;},<br>&nbsp;&nbsp;dataSource: {<br>&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla",<br>&nbsp;&nbsp;&nbsp;&nbsp;columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br>&nbsp;&nbsp;&nbsp;&nbsp;rows: [{ name: "[Product].[Product]" }],<br>&nbsp;&nbsp;&nbsp;&nbsp;measures: ["[Measures].[Internet Sales Amount]"],<br>&nbsp;&nbsp;&nbsp;&nbsp;transport: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connection: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catalog: "Adventure Works DW 2008R2",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cube: "Adventure Works"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: "http://demos.telerik.com/olap/msmdpump.dll",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataType: "text",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentType: "text/xml",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "POST"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;schema: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla"<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="pivotgrid"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#pivotgrid").kendoPivotGrid({<br>&nbsp;&nbsp;filterable: true,<br>&nbsp;&nbsp;height: 550,<br>&nbsp;&nbsp;messages: {<br>&nbsp;&nbsp;&nbsp;&nbsp;fieldMenu: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operators: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doesnotcontain: "Doesn't contain"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;},<br>&nbsp;&nbsp;dataSource: {<br>&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla",<br>&nbsp;&nbsp;&nbsp;&nbsp;columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br>&nbsp;&nbsp;&nbsp;&nbsp;rows: [{ name: "[Product].[Product]" }],<br>&nbsp;&nbsp;&nbsp;&nbsp;measures: ["[Measures].[Internet Sales Amount]"],<br>&nbsp;&nbsp;&nbsp;&nbsp;transport: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connection: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catalog: "Adventure Works DW 2008R2",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cube: "Adventure Works"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: "http://demos.telerik.com/olap/msmdpump.dll",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataType: "text",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentType: "text/xml",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "POST"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;schema: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla"<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="pivotgrid"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#pivotgrid").kendoPivotGrid({<br>&nbsp;&nbsp;filterable: true,<br>&nbsp;&nbsp;height: 550,<br>&nbsp;&nbsp;messages: {<br>&nbsp;&nbsp;&nbsp;&nbsp;fieldMenu: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operators: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startswith: "Starts"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;},<br>&nbsp;&nbsp;dataSource: {<br>&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla",<br>&nbsp;&nbsp;&nbsp;&nbsp;columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br>&nbsp;&nbsp;&nbsp;&nbsp;rows: [{ name: "[Product].[Product]" }],<br>&nbsp;&nbsp;&nbsp;&nbsp;measures: ["[Measures].[Internet Sales Amount]"],<br>&nbsp;&nbsp;&nbsp;&nbsp;transport: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connection: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catalog: "Adventure Works DW 2008R2",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cube: "Adventure Works"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: "http://demos.telerik.com/olap/msmdpump.dll",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataType: "text",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentType: "text/xml",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "POST"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;schema: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla"<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="pivotgrid"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#pivotgrid").kendoPivotGrid({<br>&nbsp;&nbsp;filterable: true,<br>&nbsp;&nbsp;height: 550,<br>&nbsp;&nbsp;messages: {<br>&nbsp;&nbsp;&nbsp;&nbsp;fieldMenu: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operators: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endswith: "Ends"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;},<br>&nbsp;&nbsp;dataSource: {<br>&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla",<br>&nbsp;&nbsp;&nbsp;&nbsp;columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br>&nbsp;&nbsp;&nbsp;&nbsp;rows: [{ name: "[Product].[Product]" }],<br>&nbsp;&nbsp;&nbsp;&nbsp;measures: ["[Measures].[Internet Sales Amount]"],<br>&nbsp;&nbsp;&nbsp;&nbsp;transport: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connection: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catalog: "Adventure Works DW 2008R2",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cube: "Adventure Works"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: "http://demos.telerik.com/olap/msmdpump.dll",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataType: "text",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentType: "text/xml",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "POST"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;schema: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla"<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="pivotgrid"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#pivotgrid").kendoPivotGrid({<br>&nbsp;&nbsp;filterable: true,<br>&nbsp;&nbsp;height: 550,<br>&nbsp;&nbsp;messages: {<br>&nbsp;&nbsp;&nbsp;&nbsp;fieldMenu: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operators: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eq: "Equal to"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;},<br>&nbsp;&nbsp;dataSource: {<br>&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla",<br>&nbsp;&nbsp;&nbsp;&nbsp;columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br>&nbsp;&nbsp;&nbsp;&nbsp;rows: [{ name: "[Product].[Product]" }],<br>&nbsp;&nbsp;&nbsp;&nbsp;measures: ["[Measures].[Internet Sales Amount]"],<br>&nbsp;&nbsp;&nbsp;&nbsp;transport: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connection: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catalog: "Adventure Works DW 2008R2",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cube: "Adventure Works"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: "http://demos.telerik.com/olap/msmdpump.dll",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataType: "text",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentType: "text/xml",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "POST"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;schema: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla"<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>});<br>&lt;/script&gt;
 * @endcode
 * @code
    &lt;div id="pivotgrid"&gt;&lt;/div&gt;<br>&lt;script&gt;<br>$("#pivotgrid").kendoPivotGrid({<br>&nbsp;&nbsp;filterable: true,<br>&nbsp;&nbsp;height: 550,<br>&nbsp;&nbsp;messages: {<br>&nbsp;&nbsp;&nbsp;&nbsp;fieldMenu: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operators: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;neq: "Not equal to"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;},<br>&nbsp;&nbsp;dataSource: {<br>&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla",<br>&nbsp;&nbsp;&nbsp;&nbsp;columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br>&nbsp;&nbsp;&nbsp;&nbsp;rows: [{ name: "[Product].[Product]" }],<br>&nbsp;&nbsp;&nbsp;&nbsp;measures: ["[Measures].[Internet Sales Amount]"],<br>&nbsp;&nbsp;&nbsp;&nbsp;transport: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connection: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catalog: "Adventure Works DW 2008R2",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cube: "Adventure Works"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: "http://demos.telerik.com/olap/msmdpump.dll",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataType: "text",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contentType: "text/xml",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "POST"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;schema: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: "xmla"<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>});<br>&lt;/script&gt;
 * @endcode
 * @throws string type error
 */
 public function messages($dataAX)
 {
     if (!is_string($this->outputCStr)) {
         $this->outputCStr = '';
     }
     $dataAX = array("messages" => $dataAX);
     if (is_string($dataAX['messages']['fieldMenu']['operators']['contains'])) {
         parent::addData("messages.fieldMenu.operators.contains", $dataAX['messages']['fieldMenu']['operators']['contains']);
         unset($dataAX['messages']['fieldMenu']['operators']['contains']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['messages']['fieldMenu']['operators']['contains'])) {
             throw new Exception("Type error - KendoUiPivotGrid::messages ( \$data[ 'messages' ][ 'fieldMenu' ][ 'operators' ][ 'contains' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['messages']['fieldMenu']['operators']['doesnotcontain'])) {
         parent::addData("messages.fieldMenu.operators.doesnotcontain", $dataAX['messages']['fieldMenu']['operators']['doesnotcontain']);
         unset($dataAX['messages']['fieldMenu']['operators']['doesnotcontain']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['messages']['fieldMenu']['operators']['doesnotcontain'])) {
             throw new Exception("Type error - KendoUiPivotGrid::messages ( \$data[ 'messages' ][ 'fieldMenu' ][ 'operators' ][ 'doesnotcontain' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['messages']['fieldMenu']['operators']['startswith'])) {
         parent::addData("messages.fieldMenu.operators.startswith", $dataAX['messages']['fieldMenu']['operators']['startswith']);
         unset($dataAX['messages']['fieldMenu']['operators']['startswith']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['messages']['fieldMenu']['operators']['startswith'])) {
             throw new Exception("Type error - KendoUiPivotGrid::messages ( \$data[ 'messages' ][ 'fieldMenu' ][ 'operators' ][ 'startswith' ] type must be 'String'");
         }
     }
     if (is_string($dataAX['messages']['fieldMenu']['operators']['endswith'])) {
         parent::addData("messages.fieldMenu.operators.endswith", $dataAX['messages']['fieldMenu']['operators']['endswith']);
         unset($dataAX['messages']['fieldMenu']['operators']['endswith']);
         parent::garbageCollector($dataAX);
     } else {
         if (isset($dataAX['messages']['fieldMenu']['operators']['endswith'])) {
             throw new Exception("Type error - KendoUiPivotGrid::messages ( \$data[ 'messages' ][ 'fieldMenu' ][ 'operators' ][ 'endswith' ] type must be 'String'");
开发者ID:helmutkemper,项目名称:KendoUI,代码行数:67,代码来源:KendoUiPivotGrid.class.php


注:本文中的javascript::addData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。