\Kendo\UI\Loader
A PHP wrapper for Kendo UI Loader.
Inherits from \Kendo\UI\Widget.
Usage
To use Loader 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 Loader
<?php
// Create a new instance of Loader and specify its id
$loader = new \Kendo\UI\Loader('Loader');
// Configure it
$loader->size('value')
// Output it
echo $loader->render();
?>
Methods
messages
Allows localization of the strings that are used in the widget.
Returns
\Kendo\UI\Loader
Parameters
$value \Kendo\UI\LoaderMessages|array
Example - using \Kendo\UI\LoaderMessages
<?php
$loader = new \Kendo\UI\Loader('Loader');
$messages = new \Kendo\UI\LoaderMessages();
$loading = 'value';
$messages->loading($loading);
$loader->messages($messages);
?>
Example - using array
<?php
$loader = new \Kendo\UI\Loader('Loader');
$loading = 'value';
$loader->messages(array('loading' => $loading));
?>
size
Defines the size of the loader
Returns
\Kendo\UI\Loader
Parameters
$value string
Example
<?php
$loader = new \Kendo\UI\Loader('Loader');
$loader->size('value');
?>
themeColor
Defines the theme color of the loader
Returns
\Kendo\UI\Loader
Parameters
$value string
Example
<?php
$loader = new \Kendo\UI\Loader('Loader');
$loader->themeColor('value');
?>
type
Defines the type of the loader
Returns
\Kendo\UI\Loader
Parameters
$value string
Example
<?php
$loader = new \Kendo\UI\Loader('Loader');
$loader->type('value');
?>
visible
If set to false the loader will not be displayed.
Returns
\Kendo\UI\Loader
Parameters
$value boolean
Example
<?php
$loader = new \Kendo\UI\Loader('Loader');
$loader->visible(true);
?>