\Kendo\Dataviz\UI\DiagramShapeEditableTool

A PHP class representing the tool setting of DiagramShapeEditableTools.

Methods

attributes

Specifies the HTML attributes of a button.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value ``

addButton

Adds one or more DiagramShapeEditableToolButton to the DiagramShapeEditableTool.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value[, $value2, ...] \Kendo\Dataviz\UI\DiagramShapeEditableToolButton|array

Example - using \Kendo\Dataviz\UI\DiagramShapeEditableToolButton

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$button = new \Kendo\Dataviz\UI\DiagramShapeEditableToolButton();
$enable = true;
$button->enable($enable);
$tool->addButton($button);
?>

Example - using array

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$enable = true;
$tool->addButton(array('enable' => $enable));
?>

Example - adding more than one DiagramShapeEditableToolButton

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$first  = new \Kendo\Dataviz\UI\DiagramShapeEditableToolButton();
$second = new \Kendo\Dataviz\UI\DiagramShapeEditableToolButton();
$tool->addButton($first, $second);
?>

click

Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value \Kendo\JavaScriptFunction

Example

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

enable

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value boolean

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->enable(true);
?>

group

Assigns the button to a group. Applicable only for buttons with togglable set to true.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->group('value');
?>

icon

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->icon('value');
?>

id

Specifies the ID of the button.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->id('value');
?>

imageUrl

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->imageUrl('value');
?>

addMenuButton

Adds one or more DiagramShapeEditableToolMenuButton to the DiagramShapeEditableTool.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value[, $value2, ...] \Kendo\Dataviz\UI\DiagramShapeEditableToolMenuButton|array

Example - using \Kendo\Dataviz\UI\DiagramShapeEditableToolMenuButton

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$menuButton = new \Kendo\Dataviz\UI\DiagramShapeEditableToolMenuButton();
$enable = true;
$menuButton->enable($enable);
$tool->addMenuButton($menuButton);
?>

Example - using array

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$enable = true;
$tool->addMenuButton(array('enable' => $enable));
?>

Example - adding more than one DiagramShapeEditableToolMenuButton

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$first  = new \Kendo\Dataviz\UI\DiagramShapeEditableToolMenuButton();
$second = new \Kendo\Dataviz\UI\DiagramShapeEditableToolMenuButton();
$tool->addMenuButton($first, $second);
?>

name

The name of the tool. The built-in tools are edit, delete, rotateClockwise, and rotateAnticlockwise.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->name('value');
?>

overflow

Specifies how the button behaves when the ToolBar is resized. Possible values are "always", "never" or "auto" (default).

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->overflow('value');
?>

overflowTemplate

Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->overflowTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->overflowTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

primary

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value boolean

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->primary(true);
?>

selected

Specifies if the toggle button is initially selected. Applicable only for buttons with togglable set to true.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value boolean

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->selected(true);
?>

showIcon

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->showIcon('value');
?>

showText

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->showText('value');
?>

spriteCssClass

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->spriteCssClass('value');
?>

step

The step of the rotateClockwise and rotateAnticlockwise tools.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value float

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->step(1);
?>

template

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->template('value');
?>

Example - using \Kendo\JavaScriptFunction

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

text

Sets the text of the button.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->text('value');
?>

togglable

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

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value boolean

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->togglable(true);
?>

toggle

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable set to true.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->toggle(new \Kendo\JavaScriptFunction('function() { }'));
?>

type

Specifies the command type. Supported types are "button", "splitButton", "buttonGroup", "separator".

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->type('value');
?>

url

Specifies the url to navigate to.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditableTool

Parameters

$value string

Example

<?php
$tool = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$tool->url('value');
?>
In this article
Not finding the help you need?