【发布时间】:2020-12-15 02:50:24
【问题描述】:
是否可以在 UIKIT.notification 的消息参数中添加 onclick 事件?
类似这样的:
notif__undoDelete = (param) => {
setTimeout(function(param) {
UIkit.notification(
`<div class="uk-flex uk-flex-middle uk-margin-medium-right">
<span>Exercise Deleted.</span><a onclick="{here}" class="uk-button uk-button-primary uk-button-small uk-margin-auto-left">Undo</a>
</div>`,
{ timeout: 6000, pos: "bottom-left" }
)
}, 800, param)
}
【问题讨论】:
标签: reactjs react-native uikit getuikit