Skip to content

Commit

Permalink
docs: document description feature for settings with scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Sep 28, 2023
1 parent 5fc2b5a commit 870fa44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/Advanced/scriptsWithSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ For example, the following script will have a text field setting with the key `T

![Settings menu for the script](../Images/script_with_settings.png)

It's possible to give a description to a setting by adding a `description` property to the setting object.

```js
const TEXT_FIELD = "Text field";

Expand All @@ -42,6 +44,7 @@ module.exports = {
type: "text",
defaultValue: "",
placeholder: "Placeholder",
description: "Description here.",
},
"Checkbox": {
type: "checkbox",
Expand Down

1 comment on commit 870fa44

@vercel
Copy link

@vercel vercel bot commented on 870fa44 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

quickadd – ./

quickadd-chrisbbh.vercel.app
quickadd.obsidian.guide
quickadd-git-master-chrisbbh.vercel.app

Please sign in to comment.