Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Prefix & Suffix #260

Open
desktopofsamuel opened this issue Dec 31, 2021 · 2 comments
Open

Support Prefix & Suffix #260

desktopofsamuel opened this issue Dec 31, 2021 · 2 comments

Comments

@desktopofsamuel
Copy link

Which version of the plugin are you using?
[x] Data Populator for Sketch
[ ] Data Populator for Adobe XD

Is your feature request related to a problem? Please describe.
Currently unit only appear after the value, however, I deal with financial data a lot and I need manually add dollar signs ($) in front of the value manually in order to solve this problem.

Describe the solution you'd like
Therefore, It would be great if Data Populator can support prefix or suffix format (or making unit configurable to display in front or after the value) (Syntax could be "string" {value} )

@garrytaulu
Copy link

I just discovered the plugin today and I ran into the same limitation straight away. It's helpful generating random prices for a data table but then I had to go in and manually add the currency symbol.

Perhaps the syntax for the layer name could be something like $ + commerce.price which would output something like $234.43

@nitrada
Copy link
Member

nitrada commented Apr 15, 2022

@desktopofsamuel @garrytaulu have you tried the "Unit" filter described here? Please note it's currently "suffix only", but maybe if you ask @drosen-appneta, who contributed this filter amongst others, very kindly he might be able to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants