-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
DataTable CSS and responsive structure improvements #4078
Comments
Please do not remove the stack mode. I understand that there are issues that mention that mention that they can not coexist together but I use both modes and totally possible with a simple conditional, in my case I have a hook called useMediaquery with which I decide that in web this scroll mode and tablet and lower in stack mode. |
Like @francmarin98 said, its posible work with that props just using a conditional, its not a big deal |
That is a big drawback that 'stack' mode is deprecated. |
@mertsincan can stack mode be brought back? consider the issue of accessibility, usability, readability and use. |
@mertsincan and @melloware, the prop |
@giovannispd However there probably should be some sort of showcase example showing fixed columns with this setting. |
ok... sorry but this is not clear in docs, and in my opinion all these main use cases should be treated. |
What chance is there that I can get the datatable component separately like it was in version 8.7.3? My company needs that way of presentation. |
@t1fmarin my only suggestion would be to check out the 8.7.3 tag here in GitHUb and copy the old Datatable component into your project along with any CSS necessary and maintain it as "` or something like that. |
Hello, I managed to recreate the responsive datatable with a small custom datatable component and CSS. You can give it a look here: The main code is in files datatable.js and datatable.css. Regards, Juliano |
Very nice @julianomqs |
I still keep wondering why stack mode was deprecated, it was something cool. |
Thanks a lot @julianomqs you saved me a lot of trouble ! |
Hi! |
Hello @mgc90, I changed my example to accept a property render, a function that accept four arguments:
This is like I do in my company and works well. In the datatable.js file you can see the change to accept the property render, and in the App.js file where the property render is used to put the column Quantity in bold. Link: Hope this helps. Regards, Juliano |
Details;
primefaces/primeng#12047
Breaking changes are;
The text was updated successfully, but these errors were encountered: