-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
onClientInfo works ONLY on the outer most window component.
zul:
<window width="100%" height="100%"
onClientInfo="@command('updateClientInfo', width=event.desktopWidth, height=event.desktopHeight, orientation=event.orientation)" >
<listbox model="@load(vm.customers)" . . .
java:
@Command()
public void updateClientInfo(@BindingParam("orientation") String _orientation,
@BindingParam("width") int _width, @BindingParam("height") int _height) {
. . .
best Stephan
2 | No.2 Revision |
onClientInfo works ONLY on the outer most window component.
zul:
<window width="100%" height="100%"
onClientInfo="@command('updateClientInfo', width=event.desktopWidth, height=event.desktopHeight, orientation=event.orientation)" >
<listbox model="@load(vm.customers)" . . .
java:
@Command()
public void updateClientInfo(@BindingParam("orientation") String _orientation,
@BindingParam("width") int _width, @BindingParam("height") int _height) {
. . .
best Stephan
PS: Complete code about the responsive stuff (i.e. calculate pageSize by browser resize) comes end of month with the ZKBoost documentation.
3 | No.3 Revision |
onClientInfo works ONLY ONLY on the outer most window window component.
zul:
<window width="100%" height="100%"
onClientInfo="@command('updateClientInfo', width=event.desktopWidth, height=event.desktopHeight, orientation=event.orientation)" >
<listbox model="@load(vm.customers)" . . .
java:
@Command()
public void updateClientInfo(@BindingParam("orientation") String _orientation,
@BindingParam("width") int _width, @BindingParam("height") int _height) {
. . .
best Stephan
PS: Complete code about the responsive stuff (i.e. calculate pageSize by browser resize) comes end of month with the ZKBoost documentation.