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.

Add the ability to set configurations through HTML data attributes

See original GitHub issue

Add the ability to set configurations/settings through HTML data attributes.

Example:

<div id="slider-example" data-start="500" data-connect="true"></div>

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leongersencommented, Jun 29, 2015

I’ve decided not to add this feature. It adds simply too much bloat to the code-base, and an external wrapper with these features would be relatively simple.

0reactions
github-actions[bot]commented, Jun 5, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using data attributes - Learn web development | MDN
To get a data attribute through the dataset object, get the property by the part of the attribute name after data- (note that...
Read more >
HTML data-* Attribute - W3Schools
The data-* attribute gives us the ability to embed custom data attributes on all HTML elements. The stored (custom) data can then be...
Read more >
Built-in and Custom Data Attributes - Beginner JavaScript
When you are working with HTML elements, those elements have something called attributes. Attributes are anything provided to an element as additional ...
Read more >
Don't use data attributes to find HTML elements with JS - intuio
Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes...
Read more >
How to Use HTML Data Attributes - DEV Community ‍ ‍
Adding a data attribute is easy. Any HTML element can have any number of data attributes added to its opening tag. We simply...
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