\Kendo\UI\ButtonGroupItem

A PHP class representing the item setting of ButtonGroupItems.

Methods

attributes

Specifies the HTML attributes of a ButtonGroup item.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value ``

badge

If set to true a default overlay badge will be displayed. If set to a string, an ovelay with content set to the specified string will be displayed. Can be set to a JavaScript object which represents the configuration of the Badge widget.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value boolean|string|float|\Kendo\UI\ButtonGroupItemBadge|array

Example - using boolean

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$item->badge(true);
?>

Example - using string

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

Example - using float

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$item->badge(1);
?>

Example - using \Kendo\UI\ButtonGroupItemBadge

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$badge = new \Kendo\UI\ButtonGroupItemBadge();
$align = 'value';
$badge->align($align);
$item->badge($badge);
?>

Example - using array

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$align = 'value';
$item->badge(array('align' => $align));
?>

enabled

Specifies if a button is enabled.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value boolean

Example

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$item->enabled(true);
?>

encoded

Specifies if text field of the ButtonGroup item should be encoded.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value boolean

Example

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$item->encoded(true);
?>

icon

Defines the name of an existing icon in a Kendo theme.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value string

Example

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

iconClass

Allows the usage of custom icons. Defines CSS classes which are to be applied to a span element inside the ButtonGroup item.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value string

Example

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

imageUrl

If set, the ButtonGroup will render an image with the specified URL in the button.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value string

Example

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

selected

Specifies if a button is initially selected.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value boolean

Example

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$item->selected(true);
?>

text

Specifies the text of the ButtonGroup item.

Returns

\Kendo\UI\ButtonGroupItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\ButtonGroupItem();
$item->text('value');
?>
In this article
Not finding the help you need?