Skip to content

Add LabelValueOption interface and utility methods #11

@drebrez

Description

@drebrez

A LabelValueOption interface that represent a select option gives the possibility to have some useful utility functions like:

  • sortByLabel
  • sortByValue

see example: https://github.com/neolution-ch/react-hook-form-components/blob/main/src/lib/types/LabelValueOption.ts

This might be seen as the javascript version of the SelectListItem (https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.rendering.selectlistitem?view=aspnetcore-8.0) class of the ASP.NET Core.
Maybe we should name it the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions