\Kendo\UI\ImageEditorToolbarItem

A PHP class representing the item setting of ImageEditorToolbarItems.

Methods

attributes

Specifies the HTML attributes of a ToolBar button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value ``

click

Specifies the click handler of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value \Kendo\JavaScriptFunction

Example

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

command

Specifies the command of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

enable

Specifies whether the control is initially enabled or disabled. Default value is "true".

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value boolean

Example

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

hidden

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

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value boolean

Example

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

icon

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

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

id

Specifies the ID of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

imageUrl

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

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

name

Specifies the name of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

options

Specifies the command options of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

overflow

Specifies the overflow of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

primary

Specifies whether the button is primary. Primary buttons receive different styling.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value boolean

Example

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

showIcon

Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

showText

Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

spriteCssClass

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

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

template

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

text

Sets the text of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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

togglable

Specifies if the button is togglable, e.g. has a selected and unselected state.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value boolean

Example

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

type

Specifies the type of the button.

Returns

\Kendo\UI\ImageEditorToolbarItem

Parameters

$value string

Example

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