Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yosefy opened this issue Feb 13, 2019 · 6 comments
Open

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

yosefy opened this issue Feb 13, 2019 · 6 comments

Comments

@yosefy
Copy link

yosefy commented Feb 13, 2019

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
}

@bugy
Copy link
Owner

bugy commented Feb 13, 2019

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.

@CaseyLabs
Copy link

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

@tristanlatr
Copy link

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.

@bugy
Copy link
Owner

bugy commented Mar 28, 2023

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 bugy added the resolved label Mar 28, 2023
@bugy
Copy link
Owner

bugy commented Mar 28, 2023

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

bugy added a commit that referenced this issue Mar 28, 2023
@antonellocaroli
Copy link

Thanks @bugy
It works perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants