Skip to content

Ability select optionLabel and optionValue from nested object #41

@vinodsptharsha

Description

@vinodsptharsha

Description.
Ability to select optional labels and option values from the nested object

Example, I have data that looks like below,

const data = [
{id: "dfgdudbhkio", name: {en: "Bengaluru",  kn: "ಬೆಂಗಳೂರು"} },
{id: "kjhvhssfsdf", name: {en: "Mysore", kn: "ಮೈಸೂರು"} },
]

I can't set name.en as optionLabel from the above array.

The solution I'd like
I should be able to set optionLabel and optionValue from the nested object data

Alternatives I've considered
Currently, I am flattening the nested object field to set optionLabel

Additional context
The same can applied to optionValue as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions