本文整理汇总了PHP中javascript::garbageCollector方法的典型用法代码示例。如果您正苦于以下问题:PHP javascript::garbageCollector方法的具体用法?PHP javascript::garbageCollector怎么用?PHP javascript::garbageCollector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javascript
的用法示例。
在下文中一共展示了javascript::garbageCollector方法的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'");
}
}
}
示例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'");
}
}
}
示例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'");
}
}
}
示例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
<form id="myform"><br> <input name="username"/> <br /><br> <button>Validate</button><br></form><br><br><script><br> $("#myform").kendoValidator({<br> validateOnBlur: false<br> });<br></script>
* @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'");
}
}
}
示例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
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: "<p>My string template in a paragraph.</p>",<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: kendo.template("<p>My function template.</p>"),<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: [<br> { name: "create" }<br> ],<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @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
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: [<br> { name: "create" },<br> { name: "custom" }<br> ],<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: [<br> { name: "create", text: "Add new" }<br> ],<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @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
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: [<br> { name: "create" },<br> { name: "custom" }<br> ],<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="treeList"></div><br><script><br> $("#treeList").kendoTreeList({<br> toolbar: [<br> { name: "create", text: "Add new" }<br> ],<br> columns: [<br> { field: "name" },<br> { field: "age" }<br> ],<br> dataSource: [<br> { name: "Jane Doe", age: 30 },<br> { name: "John Doe", age: 33 }<br> ]<br> });<br></script>
* @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'");
}
}
}
}
示例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'");
}
}
}
}
示例7: items
//.........这里部分代码省略.........
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [<br> {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Foo", enable: false },<br> { id: "bar", text: "Bar" },<br> { id: "baz", text: "Baz" }<br> ]<br> }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [<br> {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Foo", icon: "tick" },<br> { id: "bar", text: "Bar", icon: "note" },<br> { id: "baz", text: "Baz", icon: "clock" }<br> ]<br> }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [ {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Foo" },<br> { id: "bar", text: "Bar" },<br> { id: "baz", text: "Baz" }<br> ]<br> } ]<br> });<br></script>
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [<br> {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Foo", imageUrl: "foo.png" },<br> { id: "bar", text: "Bar", imageUrl: "bar.png" },<br> { id: "baz", text: "Baz", imageUrl: "baz.png" }<br> ]<br> }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [<br> {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Foo", spriteCssClass: "foo" },<br> { id: "bar", text: "Bar", spriteCssClass: "bar" },<br> { id: "baz", text: "Baz", spriteCssClass: "baz" }<br> ]<br> }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [<br> {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Foo" },<br> { id: "bar", text: "Bar" },<br> { id: "baz", text: "Baz" }<br> ]<br> }<br> ]<br> });<br></script>
* @endcode
* @code
<div id="toolbar"></div><br><br><script><br> $("#toolbar").kendoToolBar({<br> items: [<br> {<br> type: "splitButton",<br> text: "splitButton",<br> menuButtons: [<br> { id: "foo", text: "Telerik", url: "http://www.telerik.com" },<br> { id: "bar", text: "Google", url: "http://www.google.com" }<br> ]<br> }<br> ]<br> });<br></script>
* @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'");
}
}
示例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
<div id="treeview"></div><br><script><br>$("#treeview").kendoTreeView({<br> template: "#= item.text # (#= item.inStock #)",<br> dataSource: [<br> { text: "foo", inStock: 7, items: [<br> { text: "bar", inStock: 2 },<br> { text: "baz", inStock: 5 }<br> ] }<br> ]<br>});<br></script>
* @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'");
}
}
}
示例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'");
}
}
}
示例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
<div id="dialog"></div><br><script><br>$("#dialog").kendoWindow({<br> height: 400<br>});<br></script>
* @endcode
* @code
<div id="dialog"></div><br><script><br>$("#dialog").kendoWindow({<br> height: "50%"<br>});<br></script>
* @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'");
}
}
}
}
示例11: panes
//.........这里部分代码省略.........
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div>Pane B</div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ { collapsible: true }, {} ]<br>});<br></script>
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div></div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ {}, { contentUrl: "http://www.telerik.com/" } ]<br>});<br></script>
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div>Pane B</div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ { max: "200px" }, {} ]<br>});<br></script>
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div>Pane B</div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ { min: "100px" }, {} ]<br>});<br></script>
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div>Pane B</div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ { resizable: false }, { resizable: false } ]<br>});<br></script>
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div>Pane B</div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ { scrollable: false }, {} ]<br>});<br></script>
* @endcode
* @code
<div id="splitter"><br> <div>Pane A</div><br> <div>Pane B</div><br></div><br><script><br>$("#splitter").kendoSplitter({<br> panes: [ { size: "10%" }, {} ]<br>});<br></script>
* @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'");
}
}
示例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'");
}
}
}
示例13: fileBrowser
//.........这里部分代码省略.........
* @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'");
}
}
示例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
<div id="tabstrip"><br> <ul><br> <li>Tab 1</li><br> <li>Tab 2</li><br> </ul><br> <div>Content 1</div><br> <div>Content 2</div><br></div><br><br><script><br> $("#tabstrip").kendoTabStrip({<br> tabPosition: "left",<br> animation: {<br> open: {<br> effects: "fadeIn"<br> }<br> }<br> });<br></script>
* @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'");
}
}
}
示例15: messages
//.........这里部分代码省略.........
* 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
<div id="pivotgrid"></div><br><script><br>$("#pivotgrid").kendoPivotGrid({<br> filterable: true,<br> height: 550,<br> messages: {<br> fieldMenu: {<br> operators: {<br> contains: "Contains"<br> }<br> }<br> },<br> dataSource: {<br> type: "xmla",<br> columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br> rows: [{ name: "[Product].[Product]" }],<br> measures: ["[Measures].[Internet Sales Amount]"],<br> transport: {<br> connection: {<br> catalog: "Adventure Works DW 2008R2",<br> cube: "Adventure Works"<br> },<br> read: {<br> url: "http://demos.telerik.com/olap/msmdpump.dll",<br> dataType: "text",<br> contentType: "text/xml",<br> type: "POST"<br> }<br> },<br> schema: {<br> type: "xmla"<br> }<br> }<br>});<br></script>
* @endcode
* @code
<div id="pivotgrid"></div><br><script><br>$("#pivotgrid").kendoPivotGrid({<br> filterable: true,<br> height: 550,<br> messages: {<br> fieldMenu: {<br> operators: {<br> doesnotcontain: "Doesn't contain"<br> }<br> }<br> },<br> dataSource: {<br> type: "xmla",<br> columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br> rows: [{ name: "[Product].[Product]" }],<br> measures: ["[Measures].[Internet Sales Amount]"],<br> transport: {<br> connection: {<br> catalog: "Adventure Works DW 2008R2",<br> cube: "Adventure Works"<br> },<br> read: {<br> url: "http://demos.telerik.com/olap/msmdpump.dll",<br> dataType: "text",<br> contentType: "text/xml",<br> type: "POST"<br> }<br> },<br> schema: {<br> type: "xmla"<br> }<br> }<br>});<br></script>
* @endcode
* @code
<div id="pivotgrid"></div><br><script><br>$("#pivotgrid").kendoPivotGrid({<br> filterable: true,<br> height: 550,<br> messages: {<br> fieldMenu: {<br> operators: {<br> startswith: "Starts"<br> }<br> }<br> },<br> dataSource: {<br> type: "xmla",<br> columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br> rows: [{ name: "[Product].[Product]" }],<br> measures: ["[Measures].[Internet Sales Amount]"],<br> transport: {<br> connection: {<br> catalog: "Adventure Works DW 2008R2",<br> cube: "Adventure Works"<br> },<br> read: {<br> url: "http://demos.telerik.com/olap/msmdpump.dll",<br> dataType: "text",<br> contentType: "text/xml",<br> type: "POST"<br> }<br> },<br> schema: {<br> type: "xmla"<br> }<br> }<br>});<br></script>
* @endcode
* @code
<div id="pivotgrid"></div><br><script><br>$("#pivotgrid").kendoPivotGrid({<br> filterable: true,<br> height: 550,<br> messages: {<br> fieldMenu: {<br> operators: {<br> endswith: "Ends"<br> }<br> }<br> },<br> dataSource: {<br> type: "xmla",<br> columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br> rows: [{ name: "[Product].[Product]" }],<br> measures: ["[Measures].[Internet Sales Amount]"],<br> transport: {<br> connection: {<br> catalog: "Adventure Works DW 2008R2",<br> cube: "Adventure Works"<br> },<br> read: {<br> url: "http://demos.telerik.com/olap/msmdpump.dll",<br> dataType: "text",<br> contentType: "text/xml",<br> type: "POST"<br> }<br> },<br> schema: {<br> type: "xmla"<br> }<br> }<br>});<br></script>
* @endcode
* @code
<div id="pivotgrid"></div><br><script><br>$("#pivotgrid").kendoPivotGrid({<br> filterable: true,<br> height: 550,<br> messages: {<br> fieldMenu: {<br> operators: {<br> eq: "Equal to"<br> }<br> }<br> },<br> dataSource: {<br> type: "xmla",<br> columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br> rows: [{ name: "[Product].[Product]" }],<br> measures: ["[Measures].[Internet Sales Amount]"],<br> transport: {<br> connection: {<br> catalog: "Adventure Works DW 2008R2",<br> cube: "Adventure Works"<br> },<br> read: {<br> url: "http://demos.telerik.com/olap/msmdpump.dll",<br> dataType: "text",<br> contentType: "text/xml",<br> type: "POST"<br> }<br> },<br> schema: {<br> type: "xmla"<br> }<br> }<br>});<br></script>
* @endcode
* @code
<div id="pivotgrid"></div><br><script><br>$("#pivotgrid").kendoPivotGrid({<br> filterable: true,<br> height: 550,<br> messages: {<br> fieldMenu: {<br> operators: {<br> neq: "Not equal to"<br> }<br> }<br> },<br> dataSource: {<br> type: "xmla",<br> columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Geography].[City]" } ],<br> rows: [{ name: "[Product].[Product]" }],<br> measures: ["[Measures].[Internet Sales Amount]"],<br> transport: {<br> connection: {<br> catalog: "Adventure Works DW 2008R2",<br> cube: "Adventure Works"<br> },<br> read: {<br> url: "http://demos.telerik.com/olap/msmdpump.dll",<br> dataType: "text",<br> contentType: "text/xml",<br> type: "POST"<br> }<br> },<br> schema: {<br> type: "xmla"<br> }<br> }<br>});<br></script>
* @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'");
}
}