question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Allow Placeholders in Overrides

See original GitHub issue

Based off a conversation with @nitrada in #52

The current behavior for using this plugin with symbols allows using the {...} placeholders within layer names (and layer content?) as such:

image

However, I’m in a scenario where I don’t want to lock my symbols (nested symbols here) to a particular block of data. For example, let’s say I have a grid and each column’s cells are nested symbols (like normal content, a dropdown, a link, etc). Then, each cell should receive a different property of the JSON data without locking the nested symbol to the given property. In this case, instead of having to duplicate or detach my dropdown or content symbols, it would be great to be able to specify the placeholder ({...}) within the override rather than the layer name like so:

image

This approach allows certain symbols, like the dropdown and link, to be agnostic of the data they’re being populated with.

@nitrada I think this should sum it up pretty well but let me know if anything needs clarification. I looked through the demo.sketch, which did illuminate some of the features a bit better but unfortunately I still couldn’t find a way to tackle this use case with the current feature set.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
mhcomcommented, Jun 20, 2017

Let us know if we can support the thought process (why it makes sense, etc.) or support it in any other way! 😃

2reactions
nitradacommented, Nov 8, 2018

@skipjack @bottledsmoke @mhcom we’re trying to get this working for v3.0.3!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Allow Placeholders in Overrides #94 - GitHub
Based off a conversation with @nitrada in #52... ... This approach allows certain symbols, like the dropdown and link, to be agnostic of...
Read more >
Do not overwrite placeholder text - iNaturalist Forum
I found out the other day that it doesn't actually delete the placeholder, it just hides it. Try this: in an obs. with...
Read more >
Allow component instance overrides to be inherited by all states ...
I have to manually apply that override to each state of the instance. ... The components really need more features of overriding and...
Read more >
Don't Use The Placeholder Attribute - Smashing Magazine
If a person is requesting a page to be translated, the expectation is that all visible page content will be updated. Placeholders are...
Read more >
The Power of Placeholder Settings - Sitecore Community
In this post I'll show you how to override global placeholder settings on a per-template basis. This allows you to maintain the centralized...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found