\Kendo\UI\ChatToolbar
A PHP class representing the toolbar setting of Chat.
Methods
animation
Configures the toggle animation of the toolbar. If disabled, an animation will not be played.
Returns
\Kendo\UI\ChatToolbar
Parameters
$value boolean|\Kendo\UI\ChatToolbarAnimation|array
Example - using boolean
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$toolbar->animation(true);
?>
Example - using \Kendo\UI\ChatToolbarAnimation
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$animation = new \Kendo\UI\ChatToolbarAnimation();
$collapse = new \Kendo\UI\ChatToolbarAnimationCollapse();
$animation->collapse($collapse);
$toolbar->animation($animation);
?>
Example - using array
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$collapse = new \Kendo\UI\ChatToolbarAnimationCollapse();
$toolbar->animation(array('collapse' => $collapse));
?>
addButton
Adds one or more ChatToolbarButton to the ChatToolbar.
Returns
\Kendo\UI\ChatToolbar
Parameters
$value[, $value2, ...] \Kendo\UI\ChatToolbarButton|array
Example - using \Kendo\UI\ChatToolbarButton
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$button = new \Kendo\UI\ChatToolbarButton();
$iconClass = 'value';
$button->iconClass($iconClass);
$toolbar->addButton($button);
?>
Example - using array
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$iconClass = 'value';
$toolbar->addButton(array('iconClass' => $iconClass));
?>
Example - adding more than one ChatToolbarButton
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$first = new \Kendo\UI\ChatToolbarButton();
$second = new \Kendo\UI\ChatToolbarButton();
$toolbar->addButton($first, $second);
?>
scrollable
Enables or disables the scrollable behavior of the toolbar.
Returns
\Kendo\UI\ChatToolbar
Parameters
$value boolean
Example
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$toolbar->scrollable(true);
?>
toggleable
Enables or disables the toggleable behavior of the toolbar.
Returns
\Kendo\UI\ChatToolbar
Parameters
$value boolean
Example
<?php
$toolbar = new \Kendo\UI\ChatToolbar();
$toolbar->toggleable(true);
?>