color

Sets or gets the color of the badge.

Parameters

color String

See badge.options.color for valid options.

Example

Set badge color after initialization.

<span id="badge">Badge</span>

<script>
    var badge = $('#badge').kendoBadge({ color: 'secondary' }).data('kendoBadge');

    window.setTimeOut(function() {
        badge.color('primary');
    }, 1000);
</script>
In this article
Not finding the help you need? Improve this article