Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To provide asc/desc sort icons, and staying style agnostic? #11

Open
coryrose1 opened this issue Nov 19, 2019 · 1 comment
Open

To provide asc/desc sort icons, and staying style agnostic? #11

coryrose1 opened this issue Nov 19, 2019 · 1 comment

Comments

@coryrose1
Copy link
Owner

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"?

@coryrose1
Copy link
Owner Author

See #10 (comment)

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')
  &nbsp;&#9650;
@elseif ($sortDir == 'desc')
  &nbsp;&#9660;
@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant