Closed Moerill closed 3 years ago
Describe the solution you'd like Give some sort of way to modify the rendered tooltip, without using a timeout.
Possible solution: Attach a promise to the tooltip class, which will get resolved when rendering finished. This could look similar to:
tooltip.finishedRendering.then( (html) => { // modify the HTML }); return '';
Describe alternatives you've considered Using timeouts.. but thats kinda difficult to "time right"
Here it is
tooltip.renderingFinished.then(($html) => { /* YOUR CODE HERE */ }); return '';
Describe the solution you'd like Give some sort of way to modify the rendered tooltip, without using a timeout.
Possible solution: Attach a promise to the tooltip class, which will get resolved when rendering finished. This could look similar to:
Describe alternatives you've considered Using timeouts.. but thats kinda difficult to "time right"