SkeletonContainer PHP Class Overview

The Kendo UI SkeletonContainer for PHP is a server-side wrapper for the Kendo UI SkeletonContainer widget.

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI SkeletonContainer for PHP.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for PHP—include the autoloader, JavaScript, and CSS files.

Step 2 Add a SkeletonContainer with a template or a grid.

    $skeleton = new \Kendo\UI\SkeletonContainer('skeleton');

        ->template('<div class="k-card">
        <div class="k-card-header">
                <span data-shape-circle class="k-card-media avatar"></span>
            <div class="user-info">
                <span data-shape-text class="k-card-title"></span>
                <span data-shape-text class="k-card-subtitle"></span>
        <span data-shape-rectangle style="width: 340px; height: 100%;"></span>
        <div class="k-card-body">
            <span data-shape-text></span>

Step 4 Output the chart by echoing the result of the render method.

    echo $skeleton->render();


Existing Instances

You are able to reference an existing SkeletonContainer instance via the

// Put this after your Kendo SkeletonContainer for PHP render() call
$(function() {
    // Notice that the name of the SkeletonContainer is used to get its client-side instance
    var SkeletonContainer = $("#SkeletonContainer").data("kendoSkeletonContainer");

See Also

In this article