escoz / QuickDialog

QuickDialog - Quick and easy dialog screens for iOS
http://escoz.com/open-source/quickdialog
Other
3.07k stars 637 forks source link

QRootElement in JSON #636

Open tbcrowe opened 10 years ago

tbcrowe commented 10 years ago

First, like many others have done, I want to thank you for the great work on QuickDialog. It's already making my life much easier.

I've searched here, on the web, and in the code to see if it is possible to nest JSON files, but I can't even find anyone asking about such a thing let alone an example. I have a need to support multiple levels of forms where for example a top level form would be composed of labels that when tapped load subforms. I know you can do this from obj-c but I would like to be able to do the same thing from JSON files. Something along the lines of the snippet below:

: "sections": [{ "elements": [ { "title": "Part 1", "type": "QRootElement", "jsonFileName": "Subform1" }, { "title": "Part 2", "type": "QRootElement", "jsonFileName": "Subform2" }, :

Is it possible to do this?