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,
        themeColor:'primary'
    }).data('kendoBadge');

    badge.setOptions({
        text: 1234,
        themeColor: 'error'
    });
</script>
In this article