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.

hook for modifying DOM of resourceLabelText

See original GitHub issue

Hey there!

I’d like to know if there is a way to take control of the resources header element and render a custom element instead of just passing the text via the resourceLabelText option.

If this is not currently possible, how hard would be to add it? Something along the lines of the render* callbacks used for resource and events rendering.

We are currently evaluating fullcalendar + scheduler and this is a needed feature for our product. A prompt response would be very much appreciated.

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
harohlcommented, Oct 28, 2019

I am also interested in a hook for the resource header text on the timeline view. I will also warn that modifying in viewSkeletonRender or datesRender is not a reliable solution. It appears that the resource header is modified in resourceRender. Therefore if resourceRender is still rendering resources after viewSkeltonRender is complete, it will overwrite your change. This happens for one of my customers that has 100 resources. In general since this code seems to run asynchronously, it is difficult to predict the event order.

2reactions
vinicius-sfcommented, Mar 21, 2019

Hey, @acerix

Thanks for your comment, but that doesn’t really solve the problem. I’m already using resourceRender to customize the way each resource gets rendered, but what I need to do is to customize the resource header. See image below:

Screen Shot 2019-03-21 at 09 43 42

I did read the support page before posting this, but as I’m not sure if this is just a question or a feature request (in the case this is not currently possible), I have posted it here instead of Stack Overflow.

Thank you again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manipulating DOM Elements With React Hook useRef()
The inputRef holds the reference to the DOM element input , and all properties of the element can be accessed directly through the...
Read more >
Using React Hooks to Update DOM - Medium
I have demonstrated how you can dynamically change or manipulate DOM using React Hooks, and how easy it is. As always, do let...
Read more >
Access and Modify a DOM Node with the React useRef and ...
We'll cover: Creating a reference to a DOM node with useRef ... Access and Modify a DOM Node with the React useRef and...
Read more >
How to do DOM Manipulation properly in Angular?
There are multiple ways to modify the DOM elements in Angular. ... AfterViewInit — One of this Lifecycle hook is called after the...
Read more >
React hook that runs AFTER the DOM updates - Stack Overflow
You can try to pass a function as ref and do stuff in that function: const myComponent = () => { // other...
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