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

Concatenate Multiple Data #20

Open
jimcipriani opened this issue Apr 29, 2021 · 3 comments
Open

Concatenate Multiple Data #20

jimcipriani opened this issue Apr 29, 2021 · 3 comments

Comments

@jimcipriani
Copy link

I would really like to be able to build more complex random data strings. For example, I'm building sports data grid and have run into a few uses case I'd like to use this plugin for:

  • Creating Team Names: aker.address.city() + " " + random.word()
  • Creating Sample Scores: faker.random.number(7) + " - " + faker.random.number(7)
  • Creating Better Dates: faker.random.number(12) + "/" + faker.random.number(30) + "/2021"

Obviously, this changes the scope of the current plugin by adding simple JS phasing. Still, I would love to be able to build more complex phasing using layer names.

@paintedbicycle
Copy link
Owner

paintedbicycle commented Apr 30, 2021

Thanks for the examples! Offering multiple date formats is something that I'll likely build in - giving the ability to choose the date format you'd like to see, because I agree the defaults aren't great. Good to know someone is interested in it too.

For the others, I believe this can be achieved by creating multiple text layers. In your first example you could have a text layer set to city and another text layer with the random word. Same with the other example, with a third text layer in between with the dash. Using Smart Layout to resize should make it work across different text lengths

@dada-man
Copy link

I would love this too. I'd pay for the privilege of having someone else solve this for me. I create a lot of complex, data-heavy applications for my clients. The Faker implementation for Adobe XD actually handles this pretty well. You get a dedicated text field where you can enter Faker tokens and plain text to construct some very complicated placeholder text. As with everything else in XD, it's painfully clunky, but the syntax makes sense.

@fazerofgod
Copy link

hey, thanks for this useful plugin! i'm sharing the same frustration as jimciprianifor the merging content. The Solution that you give is okay for a 1 liner, if i want to get multiple lines the breaks are going crazy. So pleeeeaaaase make it real !

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

4 participants