Skip to content

Commit

Permalink
feat: add example config
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Oct 26, 2023
1 parent 92810f9 commit 6250bde
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/plugin-name/configs/config.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: $:/plugins/your-name/plugin-name/config
tags: $:/tags/ControlPanel/SettingsTab
caption: Plugin Setting

These settings let you customise the behaviour of your plugin.

---

!! Title

Description

;Config name1
:<$checkbox tiddler="$:/plugins/your-name/plugin-name/config/xxx" field="text" checked="yes" unchecked=""> Description</$checkbox>
;Config name2
:<$select tiddler='$:/plugins/your-name/plugin-name/config/yyy'>
<option value='0'>Sunday</option>
<option value='1'>Monday</option>
<option value='2'>Tuesday</option>
<option value='3'>Wednesday</option>
<option value='4'>Thursday</option>
<option value='5'>Friday</option>
<option value='6'>Saturday</option>
</$select>
;Config name3
:<$edit-text tiddler="$:/plugins/your-name/plugin-name/config/zzz" tabindex=-1 focus=false cancelPopups="yes" fileDrop=no tag="input" />
5 changes: 5 additions & 0 deletions src/plugin-name/configs/configs.multid
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: $:/plugins/your-name/plugin-name/configs

xxx: https://tidgi.fun/
yyy: https://tidgi.fun/
zzz: https://tidgi.fun/

0 comments on commit 6250bde

Please sign in to comment.