script-server icon indicating copy to clipboard operation
script-server copied to clipboard

ui idea: add some "delimiter" which will create "new line"

Open yosefy opened this issue 6 years ago • 6 comments

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 }

yosefy avatar Feb 13 '19 19:02 yosefy

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.

bugy avatar Feb 13 '19 19:02 bugy

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).

CaseyLabs avatar Feb 28 '19 19:02 CaseyLabs

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.

tristanlatr avatar Oct 28 '20 13:10 tristanlatr

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_line for starting a parameter on a new line
  • line for 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

bugy avatar Mar 28 '23 10:03 bugy

This is also configurable via admin UI, if the syntax is confusing

bugy avatar Mar 28 '23 10:03 bugy

Thanks @bugy It works perfectly

antonellocaroli avatar Mar 28 '23 18:03 antonellocaroli