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

Generalize dimensions into a multiple input type #14

Open
davidomarf opened this issue Oct 20, 2019 · 0 comments
Open

Generalize dimensions into a multiple input type #14

davidomarf opened this issue Oct 20, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@davidomarf
Copy link
Owner

So far, ginpar has only one custom input type: dimensions. This creates two inputs in a single form row separated with a 'x'.

However, there are several more inputs that could use a generalized pattern: multi.

  • Specify the main name for multi.
  • Specify the number of values the input will take.
  • Specify the type of all the values, or each value.

This should create a single <label id="{{name}}"> tag, with as many inputs were specified, each one with its own type and default values. Its id should be {{name + "-i"}}, with a different i for each input.

This could be used to generate better range inputs with number type instead of plain range type.

@davidomarf davidomarf added the enhancement New feature or request label Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant