Question

My Grid resizes as the browser resizes. Now the Grid headers are too long and when the Grid shrinks, the text is cut off. The CSS solution requires me to give a fixed with to it, which is not possible since the headers will be resized. Is there a dynamic way to add ellipsis when the header width falls below a certain value?

Was it helpful?

Solution

So easy! I wrote an entire function to add ellipsis and then found out the solution is just to explicitly set the span's style as display: inline. The Ellipsis shows up automatically!

.x-column-header-text { display: inline; }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top