\Kendo\UI\ImageEditorToolbar
A PHP class representing the toolbar setting of ImageEditor.
Methods
click
Fires when the user clicks a command button. Toolbar Events.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$toolbar->click(new \Kendo\JavaScriptFunction('function() { }'));
?>
close
Fires when the SplitButton's popup closes. Toolbar Events.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$toolbar->close(new \Kendo\JavaScriptFunction('function() { }'));
?>
addItem
Adds one or more ImageEditorToolbarItem to the ImageEditorToolbar.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value[, $value2, ...] \Kendo\UI\ImageEditorToolbarItem|array
Example - using \Kendo\UI\ImageEditorToolbarItem
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$item = new \Kendo\UI\ImageEditorToolbarItem();
$command = 'value';
$item->command($command);
$toolbar->addItem($item);
?>
Example - using array
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$command = 'value';
$toolbar->addItem(array('command' => $command));
?>
Example - adding more than one ImageEditorToolbarItem
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$first = new \Kendo\UI\ImageEditorToolbarItem();
$second = new \Kendo\UI\ImageEditorToolbarItem();
$toolbar->addItem($first, $second);
?>
open
Fires when the Split Button's popup opens. Toolbar Events.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$toolbar->open(new \Kendo\JavaScriptFunction('function() { }'));
?>
overflowClose
Fires when the overflow popup container is about to close. Toolbar Events.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$toolbar->overflowClose(new \Kendo\JavaScriptFunction('function() { }'));
?>
overflowOpen
Fires when the overflow popup container is about to open. Toolbar Events.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$toolbar->overflowOpen(new \Kendo\JavaScriptFunction('function() { }'));
?>
toggle
Fires when the user changes the checked state of a toggle button. Toolbar Events.
Returns
\Kendo\UI\ImageEditorToolbar
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$toolbar = new \Kendo\UI\ImageEditorToolbar();
$toolbar->toggle(new \Kendo\JavaScriptFunction('function() { }'));
?>