Skip to content

OptionSource DisplayPath & ValuePath #169

@Keelan

Description

@Keelan

Im trying to use optionSource but using the below"works" however the displayPath and valuePath are not working. Just Option 0-17 (matches records retrieved from the api)

Im using the CDN version

image

image

Ideally we need to split like the dataPath

const digProps: string[] = dataPath.split('.');

Maybe we can trigger the same function on displayPath & valuePath to traverse the object?

const { valuePath, displayPath } = optionSource;

const { extractDataByDataPath( valueResult , optionSourceData , valuePath), extractDataByDataPath( displayResult , optionSourceData , displayPath) } = optionSource

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions