Skip to content

请问自定义html节点, 使用registerHTMLComponent方式注册组件,怎么给html中的子元素添加点击事件? #2091

Answered by NewByVector
lir9205 asked this question in Q&A
Discussion options

You must be logged in to vote

可以将 event 属性定义在 html 文件中。

<div class="add-btn" event="node:add"><i class="custom-node-header-icon iconfont iconxinzeng"></i></div>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lir9205
Comment options

Answer selected by NewByVector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants