\Kendo\UI\ToolBarItemMenuButton

A PHP class representing the menuButton setting of ToolBarItemMenuButtons.

Methods

attributes

Specifies the HTML attributes of a menu button.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value ``

enable

Specifies whether the menu button is initially enabled or disabled.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value boolean

Example

<?php
$menuButton = new \Kendo\UI\ToolBarItemMenuButton();
$menuButton->enable(true);
?>

hidden

Determines if a button is visible or hidden. By default buttons are visible.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value boolean

Example

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

icon

Sets icon for the menu buttons. The icon should be one of the existing in the Kendo UI theme sprite.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value string

Example

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

id

Specifies the ID of the menu buttons.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value string

Example

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

imageUrl

If set, the ToolBar will render an image with the specified URL in the menu button.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value string

Example

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

spriteCssClass

Defines a CSS class (or multiple classes separated by spaces) which will be used for menu button icon.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value string

Example

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

text

Specifies the text of the menu buttons.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value string

Example

<?php
$menuButton = new \Kendo\UI\ToolBarItemMenuButton();
$menuButton->text('value');
?>

url

Specifies the url of the menu button to navigate to.

Returns

\Kendo\UI\ToolBarItemMenuButton

Parameters

$value string

Example

<?php
$menuButton = new \Kendo\UI\ToolBarItemMenuButton();
$menuButton->url('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy