Finding out where a CSS rule came from
Gotta go to the developer tools and highlight the element, then click "computed" tab and I saw something called element.style, this could be from style.css, but in my case it was a different possibility, the css can be set in ones javascript file, which was the case for me this time.
Say we have a data table with 15 columns, and only 10 columns fit on the screen. Well, a scroller automatically shows up on the data body, and you can easily scroll to see the last 5. The problem is, the titles (data headers) don't move at all, so after scrolling, the user is misinformed as to what the data represents.
Header and body will stay together horizontally . I finally found the source for how we implement dataTables taken from https://datatables.net
Turns out I just needed to add one extra attribute in the base grid options available in our unique widget implementing dataTables!
Say we have a data table with 15 columns, and only 10 columns fit on the screen. Well, a scroller automatically shows up on the data body, and you can easily scroll to see the last 5. The problem is, the titles (data headers) don't move at all, so after scrolling, the user is misinformed as to what the data represents.
Header and body will stay together horizontally . I finally found the source for how we implement dataTables taken from https://datatables.net
Turns out I just needed to add one extra attribute in the base grid options available in our unique widget implementing dataTables!
Comments
Post a Comment