w2utils.lock

Locks HTML element.
lock(box, message, showSpinner)
box HTML Element or jQuery object, box to lock
message string, message
showSpinner boolean, spinner indicator
Or
w2utils.lock(box, options)
box HTML Element or jQuery object, box to lock
options object, object with options
The first argument box is usually a div (needs to be with absolute position) which will be locked.
The second argument message is the message to display. If second argument is null or blank, no message will be displayed at all. The third argument showSpinner is a boolean variable indicating whether to show the spinner.
You can optionally define an object as the second argument with the following structure:
To lock a div without dimming it do: To lock a div with a spinner do: This method is called from grid, sidebar, layout and popup to lock its content.

User Comments

comments powered by Disqus