Change filter width

Hi, how to apply ccs style for filter input field in datatable file, trying to use filterstyle like this:

<p:column styleClass="placaColumna" filterStyle="width=16px" headerText="Placa" filterBy="# {bandeja.placa}"><h:outputText value ="#{bandeja.placa}"/></p:column> 

thanks: D

+6
source share
2 answers

The CSS syntax of your inline style is incorrect. It should be like that.

 filterStyle="width: 16px;" 
+12
source

You can also use CSS class with filterStyleClass parameter

Do not forget to use! important in your css class

 filterStyleClass="cssClass" .cssClass{width: 16px !important} 
+2
source

Source: https://habr.com/ru/post/906411/


All Articles