Changing width filter inputbox primefaces datatable

自古美人都是妖i 提交于 2020-01-14 08:08:09

问题


Hi how do i apply the ccs style for the filter inputbox in a primefaces datatable, trying to use filterstyle this way:

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

thanks :D


回答1:


Your inline style CSS syntax is incorrect. It should be like this.

filterStyle="width: 16px;"



回答2:


You can also use an CSS class with the option filterStyleClass

Don't forget to use !important in your css class

filterStyleClass="cssClass"

.cssClass{width: 16px !important}


来源:https://stackoverflow.com/questions/8929365/changing-width-filter-inputbox-primefaces-datatable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!