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

Enhance sorter link rendering to include customizable sorter icons #1010

Closed
kartik-v opened this issue Nov 12, 2021 · 0 comments
Closed

Enhance sorter link rendering to include customizable sorter icons #1010

kartik-v opened this issue Nov 12, 2021 · 0 comments

Comments

@kartik-v
Copy link
Owner

kartik-v commented Nov 12, 2021

  • New property GridView::sorterIcons
  • New GridLinkSorter class to render sorter
  • Updated DataColumn class to render link based on GridView::sorterIcons

Description of GridView::sorterIcons:

    /**
     * @var array the configuration for sorter icons. The array key must have an `SORT_ASC` and
     * SORT_DESC entry. The `sorterIcons` property defaults to following if not overridden:
     * For Bootstrap 4.x and 5.x:
     * [
     *   SORT_ASC => '<i class="fas fa-sort-amount-down-alt"></i>',
     *   SORT_DESC => '<i class="fas fa-sort-amount-up"></i>'
     * ]
     * For Bootstrap 3.x:
     * [
     *   SORT_ASC => '<i class="glyphicon glyphicon-sort-by-attributes"></i>',
     *   SORT_DESC => '<i class="glyphicon glyphicon-sort-by-attributes-alt"></i>',
     * ]
     */
    public $sorterIcons = [];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant