Edit this page

click

Triggered when an element has been clicked.

Example - subscribe to the "click" event during initialization

<div id="container"></div>
<script>
    var draw = kendo.drawing;
    var surface = draw.Surface.create($("#container"), {
        click: function(e) {
            console.log("Click");
        }
    });

    var path = new draw.Path().fill("red")
        .moveTo(50, 0).lineTo(100, 50).lineTo(0, 50).close();

    surface.draw(path);
</script>

Event Data

e.element kendo.drawing.ElementThe clicked element.
e.originalEvent ObjectThe browser event that triggered the click.
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy