mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
536 stars 43 forks source link

How to insert Defaultvalue in inlineSelect #407

Closed lotusccong closed 2 months ago

lotusccong commented 2 months ago

How to insert the DefaultValue in inlineSelect . For example the default Value is ok.

INPUT[inlineSelect( option(trash), option(bad), option(ok), option(good), option(great) ):rating]

mProjectsCode commented 2 months ago

https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/reference/inputfieldarguments/defaultvalue/

yinlokc commented 2 months ago

I found the following cannot set the default value, is the syntax correct? Thanks.

INPUT[inlineSelect(option(1), option(2), option(3), defaultValue(3)):selected]