Comments (3)
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.
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.
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)
- Auto feature (renaming layer) doesn't work with Symbols HOT 2
- Doesn't seem to work on Sketch 57.1 HOT 3
- parameter option for count of words/sentences/paragraphs
- Customize manual options in the sketch data menu HOT 1
- Add image support HOT 1
- Concatenate Multiple Data HOT 3
- Where is the data coming from?
- Provide "Matching Data". i.e. add objects/grouped data
- List all Faker options HOT 6
- Localization support HOT 4
- Add localised data formatting HOT 3
- Add support for default locale HOT 2
- Doesn’t work with library symbol overrides HOT 7
- Auto feature (renaming layer) doesn't work with Symbols HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sketch-data-faker.