-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm developing mostly in Java and the property listbox.pagingPosition is not in the Listbox class. How do I programmatically set this property. I search a long time.
Thanks in advance.
I figured it out:
Listbox rowsOfCardsContent = new Listbox() {
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
super.renderProperties(renderer);
render(renderer, "pagingPosition", "top");
}
};
Since some methods are inherited. Please check javadoc, you can find all methods including inherited.
https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Listbox.html
So you can call listbox.setPagingPosition()
instead of overriding renderProperties()
Asked: 2020-12-15 20:57:25 +0800
Seen: 6 times
Last updated: Dec 17 '20