BlueM / Pashua

Native macOS dialogs for scripting languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Grouping UI Elements

cylott opened this issue · comments

I'd like to say a huge "thanks" to Carsten for this incredible resource. I've been building apps with Pashua for a few months now and am deeply indebted to this project.

I'm wondering if there might be plans to implement any type of support for grouping UI elements. I'm currently using a solution involving loading png images to use as horizontal rules, but I'd really love to see something like this:

screen shot 2018-08-16 at 4 02 11 pm copy

Given the nature of this project, I'm sure there's frequent requests for functionality (such as interaction with a script, or nested modals) that fall outside its scope. I'm hoping this isn't one such idea.

My thinking is that a user could define the beginning and end of element groups using a syntax like this:

*.groups = 2
*.group = soccer
*.group = hockey

soccer.txt.type = textfield
soccer.txt.default = This element is in Group 1

hockey.txt.type = textfield
hockey.txt.default = This element is in Group 2

There have been various requests for tabs, boxes etc. The all have not beein implemented not because that’s rocket science, but simply due to lack of time. This hasn’t changed on my side, so it’s probably up to someone else to pick this up.

Anyways: the syntax would probably benefit from having #6 implemented, due to the hierarchical structure of YAML.