script-server
script-server copied to clipboard
ui idea: add some "delimiter" which will create "new line"
it is bit strange that they all the same exactly almost may be right name is grouping?
so the rest of params will be forced to move to next line
on UI:
| paraam 1 | | param2 |
==================
| paraam 3 |
in config.json just to explain the idea:
{ name: param1
}, { name: param2, type: text }, { name: None value: "=" type: delimiter (i guess) }, { name: param3 }
HI @yosefy, thanks for the proposal. Do you want to use this delimeter for some kind of grouping? I prefer not to occupy vertical space, if possible
Would put this ticket on voting. If some people would need it as well, would be happy to implement.
Plus one to this idea. I'm testing a very simple script for launching AWS EC2 instances, and would prefer 1 parameter per line (as I'm only passing in 3 parameters at the moment).
I agree that would be useful, some scripts can take many many params. The delimiter could have a title (and be rendered as a section containing params utils next delimiter is found) to add even more sens and structure.
Done, now it's possible to add a separator or start a parameter from a new line. For every parameter it's possible to configure a separator before this parameter. Syntax:
"ui": {
"separator_before": {
"type": "new_line",
"title": "some title"
}
}
type can be:
new_linefor starting a parameter on a new linelinefor a solid horizontal line
title is optional and adds a title before the parameter. It works together with type, i.e. for type=line it will add a title with a horizontal line
This is also configurable via admin UI, if the syntax is confusing
Thanks @bugy It works perfectly