为checkout添加切换状态时添加回调函数
This commit is contained in:
parent
ec00075b4e
commit
c58c836b7c
5 changed files with 11 additions and 1 deletions
|
@ -191,6 +191,11 @@ export default class PluginSample extends Plugin {
|
|||
type: "checkbox",
|
||||
title: "Checkbox text",
|
||||
description: "Check description",
|
||||
checkbox: {
|
||||
callback: () => {
|
||||
console.log("Checkbox clicked");
|
||||
}
|
||||
}
|
||||
});
|
||||
this.settingUtils.addItem({
|
||||
key: "Select",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue