hook for modifying DOM of resourceLabelText
See original GitHub issueHey 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:
- Created 5 years ago
- Comments:13 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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: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.