\Kendo\UI\AppBarItem

A PHP class representing the item setting of AppBarItems.

Methods

className

Defines a set CSS classes for the item.

Returns

\Kendo\UI\AppBarItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\AppBarItem();
$item->className('value');
?>

template

The template which renders as content for the appbar item. Valid only for the contentItem type

Returns

\Kendo\UI\AppBarItem

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$item = new \Kendo\UI\AppBarItem();
$item->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$item = new \Kendo\UI\AppBarItem();
$item->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

type

Defines the type of item

Returns

\Kendo\UI\AppBarItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\AppBarItem();
$item->type('value');
?>

width

Determines the width of the item. Valid only for the spacer items. Numeric values are treated as pixels.

Returns

\Kendo\UI\AppBarItem

Parameters

$value string|float

Example - using string

<?php
$item = new \Kendo\UI\AppBarItem();
$item->width('value');
?>

Example - using float

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