\Kendo\UI\SplitButtonItem

A PHP class representing the item setting of SplitButtonItems.

Methods

attributes

Adds custom attributes to the LI element of the menu button.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value ``

click

Adds unique click callback for the menu item.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->click(new \Kendo\JavaScriptFunction('function() { }'));
?>

data

Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->data(new \Kendo\JavaScriptFunction('function() { }'));
?>

enabled

Toggles the enabled state of the item.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value boolean

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->enabled(true);
?>

hidden

Indicates wether the item should hidden.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value boolean

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->hidden(true);
?>

icon

Specifies the icon of the item.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->icon('value');
?>

id

Specifies the id of the item.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->id('value');
?>

imageUrl

Specifies the image of the item.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->imageUrl('value');
?>

spriteCssClass

Specifies the custom CSS class that is added to the sprite icon element of the item.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->spriteCssClass('value');
?>

text

Specifies the text of the item. ### items.url StringSpecifies the url of the item - it will render a element and will navigate the browser on click.

Returns

\Kendo\UI\SplitButtonItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\SplitButtonItem();
$item->text('value');
?>
In this article
Not finding the help you need?