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

feat: add column reorderable option to optionally lock a column #983

Merged
merged 3 commits into from
Jan 20, 2024

Commits on Jan 20, 2024

  1. feat: add column reorderable option to optionally lock a column

    - we can take advantage of SortableJS `filter` option which can be used to filter column header with a certain CSS class. When using `reorderable: false` on a column, SlickGrid will add configurable CSS class to the column header which will be filtered out by SortableJS hence locking the column from being reorderable
    - new options available:
      - Column: `reorderable` (defaults to true)
      - Grid Option: `unorderableColumnCssClass` (defaults to "unorderable")
      - CSS/SASS variable for Alpine Theme: `$alpine-header-unorderable-bg-color` (replace `$` with `--` for CSS var)
    ghiscoding committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    3c553bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    319af99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    357a3b8 View commit details
    Browse the repository at this point in the history