mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
?_col=/?_nocol= to show/hide columns on the table page
Closes #615 * Cog icon for hiding columns * Show all columns cog menu item * Do not allow hide column on primary keys * Allow both ?_col= and ?_nocol= * De-duplicate if ?_col= passed multiple times * 400 error if user tries to ?_nocol= a primary key * Documentation for ?_col= and ?_nocol=
This commit is contained in:
parent
c0a748e5c3
commit
f1c29fd6a1
4 changed files with 142 additions and 15 deletions
|
|
@ -296,6 +296,12 @@ You can filter the data returned by the table based on column values using a que
|
|||
Special table arguments
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
``?_col=COLUMN1&_col=COLUMN2``
|
||||
List specific columns to display. These will be shown along with any primary keys.
|
||||
|
||||
``?_nocol=COLUMN1&_nocol=COLUMN2``
|
||||
List specific columns to hide - any column not listed will be displayed. Primary keys cannot be hidden.
|
||||
|
||||
``?_labels=on/off``
|
||||
Expand foreign key references for every possible column. See below.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue