Skip to content

Add ability to customize formatting string #22

Closed
@darrylhein

Description

@darrylhein

I'm trying to show the input without a currency symbol in it, which works, but a space is always added in front of the number, as far as I can tell, because of the formatString computed property.

My 2 ideas are:

  1. Change the formatString to a prop and add a default value (a function) – possibly the most flexible in the long run.
  2. Check if there's a currency and if not, only include the %v in formatString – probably easiest to implement.

It's probably doable to implement both.

I'm okay to take an attempt at adding this if it's wanted.

Good idea? Bad idea?

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