bodyTemplateFunction(default: null)

A function used to render the entire popover body. Receives { sources: [] } as the first argument and must return an HTML string. When set, the built-in navigation buttons and source layout are not rendered.

Example - use a custom body template

<span id="citation"></span>
<script>
$("#citation").kendoCitation({
    bodyTemplate: function(data) {
        return "<span>" + kendo.htmlEncode(data.sources[0].title) + "</span>";
    },
    sources: [{ url: "https://example.com", title: "Example" }]
});
</script>
In this article
bodyTemplate
Not finding the help you need?
Contact Support