Revision history [back]

click to hide/show revision 1
initial version

answered 2014-10-07 08:18:35 +0800

terrytornado gravatar image terrytornado flag of Germany

http://www.oxitec.de/

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

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.

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.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More