I will want to use reordering of listitem in zk How can we do it when we have define tags(listitem,listcell) inside the zul file .I do Not want to use ListitemRenderer.Here i found something but may be they are not updating things
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Listbox Reorder Columns
The folloing example could be found on zk fiddle too.
By Drag and Drop
First a dnd example that we extend to the popup way later.
The simple view:
The controller explained by comments:
Now we can dnd the columns.
With pop up
First we add a method that open up our menu if we click the button in Listbox.
Of course we need a view for the pop up:
As well as a controller:
If you want to have up/down buttons instead of dnd, just take a look at this zk demo.
Listbox Reorder Rows
It is very easy and can be found quickly in ZK-Documentation and on ZK Demosite.
Just add
to zks
Listhead
component in your .zul, whereXXX
is evaluated tojava.lang.Comparator
by data binding, el expression or set inside your composer.I have done reordering in ZUL itself you can check Here