Hello everyone,
I have a question, is it possible to change the length of the filter text input field of the datatable? Or even better, automatically use a percentage of the column width?
Because if you have a short column it goes behind the limits of the column...
you can see the effect even in the demo page if you narrow the browser window
Thanks in advance
Datatable filter text input length
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try;
Code: Select all
.ui-datatable .ui-column-filter {
width: 100%;
box-sizing: border-box;
}
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Glad to hear, if we get more feedback, we'll make it default.
I'll discuss my case
Here is a screenshot without the css you gave me:
And here the one with the css:
As you can see if you have small columns like "Ente" and "Tipo", the filters are ugly to see because they go beyond the column width....
In the opposite, it could be ugly too to have a so large filter like in the "Oggetto" column...
A good trade off could be to have the 100% thing plus a "maxwidth" setting so the filter will not grow too much...
However I prefer to have a big filter than a filter beyond the column width
What do you think about it?
Here is a screenshot without the css you gave me:
And here the one with the css:
As you can see if you have small columns like "Ente" and "Tipo", the filters are ugly to see because they go beyond the column width....
In the opposite, it could be ugly too to have a so large filter like in the "Oggetto" column...
A good trade off could be to have the 100% thing plus a "maxwidth" setting so the filter will not grow too much...
However I prefer to have a big filter than a filter beyond the column width
What do you think about it?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I've added this to upcoming 4.1.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests