Repository navigation
Import forms in typescript #348
Unanswered
ThomasThurnher
asked this question in
Q&A
Replies: 3 comments
|
Interestingly I wanted to segregate the form data from the plugin settings for a long time now. I have to confirm it, but I think that once you remove a plugin from obsidian, it's settings are also removed, and that is very bad for users. The reason I didn't done that yet is because it introduces more complexity that I don't have time to deal with now. const definition = await tp.file.include("[[path/yourFile.json]]").then(x => JSON.parse(x));
const result = await modalForm.openForm(definition) |
0 replies
|
@danielo515 Thank you very much for your feedback - this solution works for me! |
0 replies
Glad to see it does! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
I would like to import the data for a new form from a JSON file. I would like to use this data very much like the interaction in typescript with the "openForm" functionality, that is instead of :
I would like to interact with it as (or some workaround of that)
Describe the solution you'd like
Either, I would like to input the data via a string which is parsed from JSON, or via direct input of the JSON file.
Is this possible somehow? Thank you for your answer and I greatly appreciate your work.
All reactions