\Kendo\UI\SkeletonContainerGrid

A PHP class representing the grid setting of SkeletonContainer.

Methods

columns

Defines the number of columns.

Returns

\Kendo\UI\SkeletonContainerGrid

Parameters

$value float

Example

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$grid->columns(1);
?>

gap

An object holding values that determine the spacing between the skeleton items horizontally and vertically.

Returns

\Kendo\UI\SkeletonContainerGrid

Parameters

$value \Kendo\UI\SkeletonContainerGridGap|array

Example - using \Kendo\UI\SkeletonContainerGridGap

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$gap = new \Kendo\UI\SkeletonContainerGridGap();
$columns = 1;
$gap->columns($columns);
$grid->gap($gap);
?>

Example - using array

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$columns = 1;
$grid->gap(array('columns' => $columns));
?>

addItem

Adds one or more SkeletonContainerGridItem to the SkeletonContainerGrid.

Returns

\Kendo\UI\SkeletonContainerGrid

Parameters

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

Example - using \Kendo\UI\SkeletonContainerGridItem

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$item = new \Kendo\UI\SkeletonContainerGridItem();
$colSpan = 1;
$item->colSpan($colSpan);
$grid->addItem($item);
?>

Example - using array

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$colSpan = 1;
$grid->addItem(array('colSpan' => $colSpan));
?>

Example - adding more than one SkeletonContainerGridItem

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$first  = new \Kendo\UI\SkeletonContainerGridItem();
$second = new \Kendo\UI\SkeletonContainerGridItem();
$grid->addItem($first, $second);
?>

rows

Defines the number of rows.

Returns

\Kendo\UI\SkeletonContainerGrid

Parameters

$value float

Example

<?php
$grid = new \Kendo\UI\SkeletonContainerGrid();
$grid->rows(1);
?>
In this article
Not finding the help you need?