From 9284a398dff730d31b44f6cac97126c549888af2 Mon Sep 17 00:00:00 2001 From: nyne Date: Sat, 18 Jan 2025 16:07:49 +0800 Subject: [PATCH] Add callback setting to template --- _template_.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_template_.js b/_template_.js index 7371570..f5cd577 100644 --- a/_template_.js +++ b/_template_.js @@ -740,6 +740,14 @@ class NewComicSource extends ComicSource { type: "input", validator: null, // string | null, regex string default: '', + }, + setting4: { + title: "Setting4", + type: "callback", + buttonText: "Click me", + callback: () => { + // do something + } } }