-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Is it possible to get height/width on the server side (Java code) after resizing TextBox by dragging the stretch symbol on the right side on bottom of the textbox?
yes it is, at least in modern browsers (non IE) there's a dedicated web API (ResizeObserver) to observe changes of resizable elements such as textareas.
In ZK it can be initialized/cleaned up using the client side API (during onBind/onUnbind
), and custom events can be fired to the server side (widget.fire()
)
The example below shows this in a simple case. To reduce the number of events fired it uses the duplicatIgnore option.
https://zkfiddle.org/sample/1qms0np/1-observe-textbox-resize
Asked: 2020-05-29 18:31:44 +0800
Seen: 13 times
Last updated: Jun 03 '20