badge.template String|Function

The template which renders the content of the badge

Example - string template

<button id="button" type="button">Foo</button>
<script>
    $("#button").kendoButton({
        badge: {
            value: 1234,
            template: '#=value > 99? "99+" : value#'
        }
    });
</script>

Example - function template

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