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] Custom class names in Page element

See original GitHub issue

Would be nice to be able to give each page a custom class, such that the custom class name would be included here:

<div class="phb page" id="p1"></div>

This would allow for quickly tagging a page as the “cover”, “toc”, “credits”, etc. Currently, the method I would use is to create my own div with class/id=“title” and then put the entirety of that pages contents inside that div…but that is a needless div.

Just to throw something at the wall, it might look like this:

\page -cover-

or

\page -toc blue-

which would translate into the following, respectively: <div class="phb page cover" id="p1"></div>

<div class="phb page toc blue" id="p1"></div>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Gazook89commented, Jul 3, 2021

Might not need it on the first page; since the first page is always the first page, it’s easy to reference it without a custom class name. Or, always give the first page a class name of “first” or similar, not user defined.

I have to think about it a little more though.

0reactions
ericscheidcommented, Aug 9, 2021

See issue #1488 and #1489 for general solutions that uses {curly-injection}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Custom class names · Issue #102 - GitHub
Is it possible to provide a way to override the various class name definitions for each property? For example, I'd like to use:...
Read more >
Feature Request: Adding a custom class to items
I did something like this to add a custom class attribute to images items. The problem is, I can't find a filter to...
Read more >
Adding unique class names to to the elements in the topic map
I added a unique class name to each of the elements/list items. This lets you target individual elements in the topic map for...
Read more >
Custom elements - The Modern JavaScript Tutorial
We can create custom HTML elements, described by our class, with its own methods and properties, events and so on. Once a custom...
Read more >
Adding/Editing class names to Design Specs
Adding/Editing class names to Design Specs. Ability to add/edit the class name to elements for developers. Possible Solution
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