How to set Textbox Maxlength in the view model ?

<textbox maxlength="@bind(vm.maxlength)" />


....
public int getMaxlength() {
return 5;
}
....
 
Reference from zk forum here.