-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.1] User defined Hide Table Columns #36591
Conversation
Yes thats out of scope No I'm not moving it to the bottom. It makes no sense to hide it on the bottom of the second or third page scroll |
Co-authored-by: Dimitris Grammatikogiannis <[email protected]>
your face must be really bruised the number of times that you smash your palm into it |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
@brianteeman As Joomla 4.1 is in feature freeze Benjamin asked me to merge it for 4.2. I agree this is a great feature, so have it merged for 4.2. Thanks everybody for working on this. |
thanks for merging - shame people will have to wait :( |
Please add a language tag to the PR |
Well, that was expected. But people wanted like that. |
a table without a head section is invalid so not going to apologise if it doesnt work |
I dont understand - you have to add it to your component to use it. its not automatic |
@brianteeman of course i know. The problem now, is that this code should skip unnamed tables, but actually it doesn't do this because if a table has no name it fallbacks to the header title:
As a consequence if there are let's say 3 tables in the backend interface of a component but not all 3 tables used for columns to be hidden, then this feature will apply to all of them.
I hope to have well explained. |
Two choices
|
joomla/joomla-cms#36591 + joomla/joomla-cms#37362 + joomla/joomla-cms#37404 - (позже был Revert PR) joomla/joomla-cms#37453 + joomla/joomla-cms#37583 + joomla/joomla-cms#37459 + joomla/joomla-cms#36751 + joomla/joomla-cms#36752 + joomla/joomla-cms#37912 + joomla/joomla-cms#37838 + joomla/joomla-cms#38002 + joomla/joomla-cms#38036 - (только для en-GB, у нас давно исправлено) joomla/joomla-cms#38009 + joomla/joomla-cms#38064 + joomla/joomla-cms#37911 + joomla/joomla-cms#38065 + joomla/joomla-cms#38075 + joomla/joomla-cms#38071 + joomla/joomla-cms#38080 + joomla/joomla-cms#38082 + joomla/joomla-cms#38092 + joomla/joomla-cms#38113 + joomla/joomla-cms#38121 + joomla/joomla-cms#37910 + joomla/joomla-cms#38165 + joomla/joomla-cms#37747 +
Very useful option but... Why the new dropdown list button for the columns is placed in a new line and not in the same row and after the dropdown list button for the list limit? As, for example, the list limit button affects the table, also does this new button for the columns of the table. So they should placed together. There is space for them to fit in one row and if the left menu is closed then there is more space. I think we need to stop pushing the table too much down. Also the other filters have a specific ID or class e.g. "list_limit", "list_fullordering". Why the new button for the columns doesn't have? |
d-xxl-table-cell, d-sm-table-cell and d-xs-table-cell aren't removed by the JavaScript. Can you please adjust the JS? |
Summary of Changes
Decide for yourself which columns to display for any table. The button shows an updating count of how many columns are shown.
The choice of which column to display is stored in local storage so it is persistent for you in your browser for that site.
This should be added to every table and it can also be added by extension developers to their own table by just adding one line to the existing web assets.
Testing Instructions
As there is new js you will need to
run npm ci
This is a fork and continuation of work by @PhilETaylor @dgrammatiko @Fedik