Canvas icon indicating copy to clipboard operation
Canvas copied to clipboard

Question: how to bind to events?

Open markusleder opened this issue 5 years ago • 4 comments

Is it possible to bind event handlers to the underlying blazor component (ElementRef?) for e.g. UIMouseEventArgs or UITouchEventArgs?

markusleder avatar Nov 18 '18 11:11 markusleder

Hello,

Not today. Do you want to submit a PR for that?

galvesribeiro avatar Nov 26 '18 10:11 galvesribeiro

Not too important - and don't know if I'm deep enough into the material. Would you have any links to examples?

Currently worked around with wrapping into a div and fiddling with nasty offsets - for a blazor team demo/training.

<div onclick="@OnClick">
    <BECanvas ref="@_canvasComponent" width="@Width" height="@Height"></BECanvas>
</div>

But thanks for you reply!

markusleder avatar Nov 26 '18 19:11 markusleder

I have created a pull request for this #23

dyl10s avatar Feb 27 '19 23:02 dyl10s

Is there any update to this? Is there now a way to get user events on a BECanvas?

heddle avatar Sep 19 '19 17:09 heddle