w2sidebar.lock

Locks the sidebar.
lock(message, [showSpinner])
message string, message
showSpinner boolean, optional, spinner indicator
Returns undefined.

Description

This method will lock the sidebar by added a semi-transparent div on top of its content. The user will not be able to interact with the sidebar or its content until the sidebar is unlocked with .unlock(). This method will call w2utils.lock() to perform the locking.
If you have following sidebar: You have 3 options how you want to lock the content.
Lock with a message and a spinner: Lock w/o a message, but with a spinner: Lock w/o a message and w/o a spinner:

User Comments

comments powered by Disqus