open

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.

Example - subscribe to the "open" event during initialization

<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>

Example - subscribe to the "open" event after initialization

<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>
In this article
open
Not finding the help you need?
Contact Support