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:
options = { msg : '', // message to display spinner : false, // indicates if to display a spinner opacity : // opacity for the lock div } To lock a div without dimming it do: w2utils.lock(div, { spinner: true, opacity : 1 }); To lock a div with a spinner do: w2utils.lock(div, '', true); This method is called from grid, sidebar, layout and popup to lock its content.