livewire-tables
livewire-tables copied to clipboard
To provide asc/desc sort icons, and staying style agnostic?
Do we attempt to provide sorting and ascending icons for the <th>
header cells, outside of ascending and descending classes as referenced in #10 ?
Is it possible to do so and stay "style agnostic"?
See https://github.com/coryrose1/livewire-tables/issues/10#issuecomment-557793634
If a column is sortable, we can have default asc/desc status icons that are HTML entities and completely agnostic rendered after the column title.
@if ($sortDir == 'asc')
▲
@elseif ($sortDir == 'desc')
▼
@endif
Can we somehow have a configuration file option that allows the user to pass either a different HTML entity for asc/desc, or an SVG? However we then need to handle the tags for the SVG, styling, etc.
Any thoughts?