Giter VIP home page Giter VIP logo

Comments (3)

paintedbicycle avatar paintedbicycle commented on May 25, 2024

Hi @icona79 - if I understand correctly this is already how the plugin works. It works in symbols just fine. However you need to change the name of your layer.

The content of the layer is not read by the plugin because it gets replaced and so it’s then gone if the plugin is ever run a second time. So I didn’t build it this way.

So change your layer names and the plugin should do what you’ve asked.

If I misunderstood, feel free to reopen

from sketch-data-faker.

icona79 avatar icona79 commented on May 25, 2024

I @paintedbicycle I cannot use the text layer name: the convention for the symbols exclude completely I can rename them. I'd love to have some different option in order to manage it, if possible.

When I'm creating an instance of my table cell, I recall a symbol. The symbol text layer name is something like: ↳ Cell Text.
This is because the symbol has to be re usable everywhere, not only in the current table.

When I'm managing to create a new IBANs, this layer should be finance.iban, whether if the cell is the account ID it'd be finance.account. My problem is that my Cell symbol is everytime the same one with a text layer named ↳ Cell Text.

Actually, I have a plugin I developed that created for me a table row with the required amount of cells and extra items. The result of that plugin is a document Symbol named Table--row every designer can customize overriding what is possible. In the case of a text layer, just the content.
The result of it is that we'll have many instances of that row. If I can override the text into the master document symbol with finance.iban and then from the instances pass over this plugin
overriding that text it'd be perfect!

from sketch-data-faker.

paintedbicycle avatar paintedbicycle commented on May 25, 2024

Can you tell me if the manual mode of my plugin works the way you would like?

Right now there are 2 ways to use the plugin: Automatic Mode (with the layer name) and Manual Mode where you do not have to change the layer name. There is only ~7 pieces of data available for the Manual Mode but it is possible I could increase this.

Can you try to see if this works? You would need to select the text layer inside the symbol (using the layer list on the left) and then with my plugin, set the Data Source to be a type of data. Just test it with any data. Then, tell me if this works. If yes, I may add more data options.

My plugin will never be able to read the content of the layer because once my plugin changes the content, it will never again be possible for the plugin to know what type of data you want there again in the future. This is because my plugin changes the data in the content of the layer. So, once it's changed from internet.email to [email protected], it is no longer possible to know if it was internet.email before. The plugin is designed to offer the ability to duplicate the layer and to get different data by refreshing the data. This way the data is unique to each layer and is forever connected to the plugin. But it cannot do this if it loses the information on what type of data you requested in the first place.

However, as mentioned, maybe the Manual Mode will work. Let me know.

from sketch-data-faker.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.