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

Mobile responsive on datatable #379

Closed
liho98 opened this issue Jul 5, 2021 · 6 comments
Closed

Mobile responsive on datatable #379

liho98 opened this issue Jul 5, 2021 · 6 comments

Comments

@liho98
Copy link

liho98 commented Jul 5, 2021

This function solves the problem (这个功能解决的问题)

Mobile responsive on datatable

Expected API (期望的 API)

Mobile responsive on datatable
image
the official website datatable not responsive as well

@Fnzero
Copy link
Collaborator

Fnzero commented Jul 5, 2021

You can customize the column width.

@Fnzero Fnzero closed this as completed Jul 5, 2021
@07akioni
Copy link
Collaborator

07akioni commented Jul 5, 2021

This function solves the problem (这个功能解决的问题)

Mobile responsive on datatable

Expected API (期望的 API)

Mobile responsive on datatable
image
the official website datatable not responsive as well

You can use scrollX to make it scrollable in horizontal direction.

@liho98
Copy link
Author

liho98 commented Jul 5, 2021

I think, the documentation should be modified or enhanced to make it mobile resposive and to indicate how the datatable could be responsvie.

@07akioni
Copy link
Collaborator

07akioni commented Jul 5, 2021

I think, the documentation should be modified or enhanced to make it mobile resposive and to indicate how the datatable could be responsvie.

In fact there is no builtin responsive solution, currently the best way is to set scroll-x.

@liho98
Copy link
Author

liho98 commented Jul 5, 2021

scroll-x

possible to reopen this issue as feature request, which allow overflow: auto to be happed just like how pure html & css works

@07akioni
Copy link
Collaborator

07akioni commented Jul 5, 2021

as feature request, which allow overflow: auto to b

It's impossible to make it work as overflow: auto.

If you want to hide some columns on different screens, just modify the issue description and I'll reopen it.

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

3 participants