We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be2b5d commit e8f0352Copy full SHA for e8f0352
main.ts
@@ -120,16 +120,13 @@ class SampleSettingTab extends PluginSettingTab {
120
121
containerEl.empty();
122
123
- containerEl.createEl('h2', {text: 'Settings for my awesome plugin.'});
124
-
125
new Setting(containerEl)
126
.setName('Setting #1')
127
.setDesc('It\'s a secret')
128
.addText(text => text
129
.setPlaceholder('Enter your secret')
130
.setValue(this.plugin.settings.mySetting)
131
.onChange(async (value) => {
132
- console.log('Secret: ' + value);
133
this.plugin.settings.mySetting = value;
134
await this.plugin.saveSettings();
135
}));
0 commit comments