\Kendo\UI\BottomNavigationItem
A PHP class representing the item setting of BottomNavigationItems.
Methods
attributes
Defines custom attributes of the item's element.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value ``
cssClass
Defines the class names of the item's element.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value string
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->cssClass('value');
?>
data
Contextual data to be used for events within the component.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value ``
enabled
Toggles the enabled state of the item.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value boolean
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->enabled(true);
?>
encoded
If false, the text will be able to render HTML.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value boolean
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->encoded(true);
?>
icon
Defines the name for an existing icon in a Kendo UI theme.See web font icons help article for more details on Kendo UI icons.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value string
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->icon('value');
?>
iconClass
Defines the class name added to the icon element.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value string
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->iconClass('value');
?>
selected
Toggles the selected state of the item.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value boolean
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->selected(true);
?>
template
Sets a custom template for the item (overrides the template option).
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->template('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->template(new \Kendo\JavaScriptFunction('function() { }'));
?>
text
The text of the item. It is optional - if not set, no text will be rendered.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value string
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->text('value');
?>
url
The URL (href) to which the item will navigate to.
Returns
\Kendo\UI\BottomNavigationItem
Parameters
$value string
Example
<?php
$item = new \Kendo\UI\BottomNavigationItem();
$item->url('value');
?>