有没有一种简单的方法来改变排序顺序并从PrimeFaces选项列表中移动按钮?为了更好的可用性,我需要按钮按此顺序:
分类:
all up
up
down
all down
Run Code Online (Sandbox Code Playgroud)
和移动:
all to the right
right
left
all to the left
Run Code Online (Sandbox Code Playgroud)
我只是实现虚拟页面的人,而其他人必须实现我在这里设计的PrimeFaces组件.所以我不希望它对程序员来说是一项不可能完成的任务.
没有内置的buttonTemplate功能,你可以用css改变顺序.
码:
.ui-picklist-button-add {
position:relative;
top:25px;
}
.ui-picklist-button-add-all {
position:relative;
top:-40px;
}
Run Code Online (Sandbox Code Playgroud)
- >这就是'擎天柱'所说的.他在Prime Faces论坛上回答了我的问题