mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
803 stars 58 forks source link

best fit for colum width and eliminate word 'search' for column search #326

Open TONODEKEN opened 1 month ago

TONODEKEN commented 1 month ago

Hello, Is there a way to adapt the column width to the best fit for the content ? When I have a search bar as column header , can I eliminate tithe word 'Search' before the column name. This widens the column width a lot.

Thanks for an answer

Best regards

mwouts commented 2 weeks ago

Hey @TONODEKEN , great question re column width, I expect that to be the default - see also https://mwouts.github.io/itables/custom_css.html#column-width , but happy to investigate a specific example!

The 'Search' prefix in the search bar is currently not optional, but you could modify this file if you want to remove it: https://github.com/mwouts/itables/blob/main/src/itables/html/column_filters/pre_dt_code.js#L5

tomnobelsAM commented 1 week ago

Hey @TONODEKEN , great question re column width, I expect that to be the default - see also https://mwouts.github.io/itables/custom_css.html#column-width , but happy to investigate a specific example!

The 'Search' prefix in the search bar is currently not optional, but you could modify this file if you want to remove it: https://github.com/mwouts/itables/blob/main/src/itables/html/column_filters/pre_dt_code.js#L5

Dear Marc, thanks for your answers. I will check, maybe I did a wrong conbination of table layout an column-width. Nice suggestion for the second question !