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

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

Open
TONODEKEN opened this issue Oct 7, 2024 · 2 comments
Open

Comments

@TONODEKEN
Copy link

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
Copy link
Owner

mwouts commented Nov 2, 2024

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
Copy link

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 !

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