\Kendo\UI\ButtonBadge

A PHP class representing the badge setting of Button.

Methods

appearance

Specifies the shape of the badge - rectangle or pill.

Returns

\Kendo\UI\ButtonBadge

Parameters

$value string

Example

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

look

Specifies the look of the badge - flat or outline.

Returns

\Kendo\UI\ButtonBadge

Parameters

$value string

Example

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

overlay

If set to false the badge is displayed inside the button.

Returns

\Kendo\UI\ButtonBadge

Parameters

$value boolean

Example

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

template

The template which renders the content of the badge

Returns

\Kendo\UI\ButtonBadge

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

type

Specifies the type of the badge - primary, secondary, info, success, warning and error.

Returns

\Kendo\UI\ButtonBadge

Parameters

$value string

Example

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

value

The value of the badge

Returns

\Kendo\UI\ButtonBadge

Parameters

$value string|float

Example - using string

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

Example - using float

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

visible

If set to false the badge will not be displayed.

Returns

\Kendo\UI\ButtonBadge

Parameters

$value boolean

Example

<?php
$badge = new \Kendo\UI\ButtonBadge();
$badge->visible(true);
?>
In this article
Not finding the help you need?