data-populator icon indicating copy to clipboard operation
data-populator copied to clipboard

Support Prefix & Suffix

Open desktopofsamuel opened this issue 3 years ago • 2 comments

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} )

desktopofsamuel avatar Dec 31 '21 09:12 desktopofsamuel

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

garrytaulu avatar Jan 10 '22 05:01 garrytaulu

@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

nitrada avatar Apr 15 '22 10:04 nitrada