Skip to content

Generalize dimensions into a multiple input type #14

@davidomarf

Description

@davidomarf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions