Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Add displayDefault to ResultTable #279

@daedalus28

Description

@daedalus28

This line: https://github.com/smartprocure/contexture-react/blob/master/src/exampleTypes/ResultTable.js#L288

Replace the x => x with a parameterized default display function. Also pass field as the third param here: https://github.com/smartprocure/contexture-react/blob/master/src/exampleTypes/ResultTable.js#L290

The motivation is to allow end users to customize the default - e.g., to look at field types on schemas to automatically format by type. We could maybe also pass fields or even a "schemaField" equivalent (the destructed props there) as param 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions