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

Selection by categories #5

Open
ghost opened this issue Feb 21, 2020 · 0 comments
Open

Selection by categories #5

ghost opened this issue Feb 21, 2020 · 0 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@ghost
Copy link

ghost commented Feb 21, 2020

Description of feature:
The library will allow you to receive an array with categories and within an array of options.

...

const data = [
  {
    name: "Rice",
    id: 1,
    options: [
      {
        label: "White rice", 
        value: "1",
      },
      {
        label: "Sauteed rice", 
        value: "2",
      }
    ],
  },
  {
    // Other categories
  },
];

...

Necessity:
In some applications, this type of selection may be useful.

Implementation:
You can place this object to be received by another property, different than the one that is only options or even that it is always that object and having only one object inside, so it works the way it is currently.

Worth a discussion

@ghost ghost added the enhancement New feature or request label Feb 21, 2020
@ghost ghost pinned this issue Feb 27, 2020
@ghost ghost changed the title Seleção por categorias Selection by categories Mar 24, 2020
@ghost ghost added the hacktoberfest label Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

0 participants