Edit this page

badge

Parameters

button Selector |Number

The target button specified either as a jQuery selector/object or as an button index.

value String |Boolean

The target value to be set or false to be removed.

Returns

String |kendo.ui.Button the badge value if invoked without parameters, otherwise the ButtonGroup object.

Example

<ul id="buttongroup">
    <li>Option 1</li>
    <li>Option 2</li>
    <li>Option 3</li>
</ul>

<script>
    var buttonGroup = $("#buttongroup").kendoButtonGroup({
        select: function(e) {
            console.log("selected index:" + e.indices);
        },
        index: 0
    }).data("kendoButtonGroup");

    buttonGroup.badge(0,5);
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy