setOptions

Modifies the initial configuration of the badge

Parameters

options Object

The new options.

Example

<button>Button <span id="badge"></span></button>
<script>
    var badge =  $('#badge').kendoBadge({
        text: 7
        color:'primary'
    }).data('kendoBadge');

    badge.setOptions({
        text: 1234
        color: 'error'
    });
</script>
In this article
Not finding the help you need? Improve this article