Skip to content

Allow format to be a function #38

@sangaline

Description

@sangaline

It would be convenient if the format prop could be a function instead of a string, so that using the numbro formatting strings wouldn't be mandatory. The format() function could be called instead of numbro.format() inside of the internal toFormattedString() method when it's a function, otherwise it could just function the same way that it does now.

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