\Kendo\UI\SkeletonContainer
A PHP wrapper for Kendo UI SkeletonContainer.
Inherits from \Kendo\UI\Widget.
Usage
To use SkeletonContainer in a PHP page instantiate a new instance, configure it via the available
configuration methods and output it by echo
-ing the result of the render method.
Using Kendo SkeletonContainer
<?php
// Create a new instance of SkeletonContainer and specify its id
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
// Configure it
$skeletonContainer->animation('value')
// Output it
echo $skeletonContainer->render();
?>
Methods
animation
Determines whether the items will be animated
Returns
\Kendo\UI\SkeletonContainer
Parameters
$value string
Example
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->animation('value');
?>
grid
Defines the settings for the CSS Grid used for layouting the skeleton shapes.
Returns
\Kendo\UI\SkeletonContainer
Parameters
$value \Kendo\UI\SkeletonContainerGrid|array
Example - using \Kendo\UI\SkeletonContainerGrid
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$grid = new \Kendo\UI\SkeletonContainerGrid();
$columns = 1;
$grid->columns($columns);
$skeletonContainer->grid($grid);
?>
Example - using array
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$columns = 1;
$skeletonContainer->grid(array('columns' => $columns));
?>
height
Determines the height of the component. Numeric values are treated as pixels.
Returns
\Kendo\UI\SkeletonContainer
Parameters
$value string|float
Example - using string
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->height('value');
?>
Example - using float
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->height(1);
?>
template
Defines a template that will be used to visualize the skeleton shapes. If both grid and template are defined the grid takes precedence.
Returns
\Kendo\UI\SkeletonContainer
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->template('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->template(new \Kendo\JavaScriptFunction('function() { }'));
?>
width
Determines the width of the component. Numeric values are treated as pixels.
Returns
\Kendo\UI\SkeletonContainer
Parameters
$value string|float
Example - using string
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->width('value');
?>
Example - using float
<?php
$skeletonContainer = new \Kendo\UI\SkeletonContainer('SkeletonContainer');
$skeletonContainer->width(1);
?>