template String|Function

The template which renders the content of the badge

Example - string template

<button>Button <span id="badge"></span></button>
<script>
    $('#badge').kendoBadge({
        value: 1234,
        template: '#=value > 99? "99+" : value#'
    })
</script>

Example - function template

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