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({
        value: 7,
        template: function(value){
            return value + 10
        },
        type:'primary'
    }).data('kendoBadge');

    badge.setOptions({
        type: 'error',
        value: 1234,
        template: '#=value > 99? "99+" : value#'
    })
</script>
In this article
Not finding the help you need? Improve this article