Adding CSS classes to thead, tfoot and tbody
#492 opened on Oct 11, 2017
Repository metrics
- Stars
- (312 stars)
- PR merge metrics
- (PR metrics pending)
Description
@fran-worley https://github.com/offirgolan/ember-light-table/issues/99#event-734291228:
Sorry to bump an old issue but I believe this only partially resolves issues marrying up Bootstraps css styles with ember-light-table.
We need to be able to apply styles directly to the 'thead' too ('.thead-default' is just one style example from BS v4). Could the api be harmonized to allow you to add classes directly to table elements (table, thead, tbody etc.).
As a user, I would expect that setting class on {{t.head}}, {{t.body}} and {{t.foot}} set these classes on the rendered <thead>, <tbody> and <tfoot> elements.
I'm not sure, if we can use class as the attribute name here, since it's a magic Component keyword that automatically sets the class HTML attribute for the rendered component element.