✅ test: setting panel
This commit is contained in:
parent
b0d28e2513
commit
2051a2a7d6
5 changed files with 107 additions and 111 deletions
10
src/index.ts
10
src/index.ts
|
@ -172,11 +172,9 @@ export default class PluginSample extends Plugin {
|
|||
type: "select",
|
||||
title: "Readonly text",
|
||||
description: "Select description",
|
||||
select: {
|
||||
options: {
|
||||
1: "Option 1",
|
||||
2: "Option 2"
|
||||
}
|
||||
options: {
|
||||
1: "Option 1",
|
||||
2: "Option 2"
|
||||
}
|
||||
});
|
||||
this.settingUtils.addItem({
|
||||
|
@ -256,7 +254,7 @@ export default class PluginSample extends Plugin {
|
|||
openDIYSetting(): void {
|
||||
let dialog = new Dialog({
|
||||
title: "SettingPannel",
|
||||
content: `<div id="SettingPanel"></div>`,
|
||||
content: `<div id="SettingPanel" style="height: 100%;"></div>`,
|
||||
width: "600px",
|
||||
destroyCallback: (options) => {
|
||||
console.log("destroyCallback", options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue