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

Add option to disable column resize on specific column in STable #201

Closed
kiaking opened this issue Jan 24, 2023 · 0 comments · Fixed by #203
Closed

Add option to disable column resize on specific column in STable #201

kiaking opened this issue Jan 24, 2023 · 0 comments · Fixed by #203
Assignees
Labels
enhancement New feature or request

Comments

@kiaking
Copy link
Member

kiaking commented Jan 24, 2023

It would be cool to have a option to disable column resize on table, not all but for specified column.

The use case is when we have big table with lots of column, adding empty last column makes the UI a bit nicer similar to what GitHub project has.

In this case, we wanna disable resizing the last empty column because there's no point of doing it, and it always allow table to have good background color (if we resize the last item, we get black bg color).

API idea.

const table = useTable({
  columns: {
    lastItem: {
      resizable: false
    }
  }
})
@kiaking kiaking added the enhancement New feature or request label Jan 24, 2023
@brc-dd brc-dd self-assigned this Jan 24, 2023
kiaking added a commit that referenced this issue Jan 24, 2023
close #201

Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants