Primefaces分页器,如何显示';ViewAll';rowsPerPageTemplate中的选项
在Primefaces paginator中,在rowsPerPageTemplate中,如何显示View All,这将加载页面中的所有数据。 下面的链接有一个解决方案,但它仅在页面加载时起作用。 当某个操作发生并更新数据表内容时,不再显示“全部视图”。Primefaces分页器,如何显示';ViewAll';rowsPerPageTemplate中的选项,primefaces,pagination,Primefaces,Pagination,在Primefaces paginator中,在rowsPerPageTemplate中,如何显示View All,这将加载页面中的所有数据。 下面的链接有一个解决方案,但它仅在页面加载时起作用。 当某个操作发生并更新数据表内容时,不再显示“全部视图”。 任何建议都很好。在更新表的操作之后,只需在您发布的链接中应用javascript即可。例如,通过类似于oncomplete=“addViewAll()”属性的方式 function addViewAll() { $('#form\\
任何建议都很好。在更新表的操作之后,只需在您发布的链接中应用javascript即可。例如,通过类似于
oncomplete=“addViewAll()”
属性的方式
function addViewAll() {
$('#form\\:cars .ui-paginator-rpp-options.ui-widget.ui-state-default.ui-corner-left')
.each(function() {
$(this).children().last().html('ALL');
});
}