\Kendo\UI\ExpansionPanelAnimation
A PHP class representing the animation setting of ExpansionPanel.
Methods
collapse
The visual animation(s) that will be used when ExpansionPanel items are closed.
Returns
\Kendo\UI\ExpansionPanelAnimation
Parameters
$value \Kendo\UI\ExpansionPanelAnimationCollapse|array
Example - using \Kendo\UI\ExpansionPanelAnimationCollapse
<?php
$animation = new \Kendo\UI\ExpansionPanelAnimation();
$collapse = new \Kendo\UI\ExpansionPanelAnimationCollapse();
$duration = 1;
$collapse->duration($duration);
$animation->collapse($collapse);
?>
Example - using array
<?php
$animation = new \Kendo\UI\ExpansionPanelAnimation();
$duration = 1;
$animation->collapse(array('duration' => $duration));
?>
expand
The visual animation(s) that will be used when opening items.
Returns
\Kendo\UI\ExpansionPanelAnimation
Parameters
$value \Kendo\UI\ExpansionPanelAnimationExpand|array
Example - using \Kendo\UI\ExpansionPanelAnimationExpand
<?php
$animation = new \Kendo\UI\ExpansionPanelAnimation();
$expand = new \Kendo\UI\ExpansionPanelAnimationExpand();
$duration = 1;
$expand->duration($duration);
$animation->expand($expand);
?>
Example - using array
<?php
$animation = new \Kendo\UI\ExpansionPanelAnimation();
$duration = 1;
$animation->expand(array('duration' => $duration));
?>