type String

Specifies the type of the badge - primary, secondary, info, success, warning and error.

Example

<button>Button <span id="badge"></span></button>
<script>
    $('#badge').kendoBadge({
        value: 1234,
        template: function (value){
            return value > 99 ? '99+' : value;
        },
        type: 'warning'
    })
</script>
In this article
Not finding the help you need? Improve this article