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
390 stars 33 forks source link

Advanced Use-Cases first example doesn't work #332

Closed RayBB closed 1 month ago

RayBB commented 1 month ago

Please fill out these Check-boxes

This Issue Occurs on

Plugin Version

1.1.0

Describe the Issue

When I copy the advance use case for "Dynamic Bind Targets with JavaScript" it doesn't show the bottom part (number input).

I'm not sure if I have something wrong, as the JS-engine is installed and enabled.

https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/guides/advancedusecases/

Steps to Reproduce

  1. Create a new file
  2. Paste in the example from here
  3. Observe that no INPUT[number] is shown
image image

Apologizes if I'm just not understanding how the example should work.

When I edit the note to have a simple INPUT[number:list[1]] as I think it is trying to create, it renders fine.

Thanks for helping me understand.

Expected Behavior

It should show the number input.

Geohexamon commented 1 month ago

Did you make sure to enable JS input fields in the Meta Bind settings? Also to have JS Engine enabled.

image

image

RayBB commented 1 month ago

@Geohexamon thank you for patiently helping me... I didn't see that in the docs.

So I opened a PR to add it to the place in the docs where it might be most useful :)

https://github.com/mProjectsCode/obsidian-meta-bind-plugin-docs/pull/9