New to Kendo UI for jQuery? Start a free 30-day trial

Open

events

Fired before the sources popover opens. Calling e.preventDefault() prevents the popover from being shown.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.sources Array

The current sources array configured on the widget.

e.preventDefault Function

If invoked, prevents the popover from opening.

e.sender kendo.ui.Citation

The widget instance which fired the event.

<span id="citation"></span>
<script>
$("#citation").kendoCitation({
    sources: [{ url: "https://example.com", title: "Example" }],
    open: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log(e.sources.length);
    }
});
</script>
<span id="citation"></span>
<script>
$("#citation").kendoCitation({
    sources: [{ url: "https://example.com", title: "Example" }]
});
var citation = $("#citation").data("kendoCitation");
citation.bind("open", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.sources.length);
});
</script>
Not finding the help you need?
Contact Support