Block UI (ref)
(part of package 'Block UI')
You can access it in code via: plugins.svyBlockUI
Block UI Service can show an overlay over the whole browser page while some (long) operations are being executed. It prevents any interaction with the UI. The overlay UI can be customized from CSS, using block-ui-main and block-ui-spinner classes.
Properties
delay
This is the delay in milliseconds how long it must take to start show the blocking ui
Type: Number Default Value: 250
messageStyleClass
Type: Styleclass
overlayColor
Type: Color Default Value: "#ffffff"
overlayOpacity
Type: Number Default Value: 0.5
spinner
Type: String
spinnerBgColor
Type: Color
API
setMessage(message)
Updates the message of the UI Blocker
Parameters:
{String} message The new message to display while the UI is blocked.
show(message,timeout)
Shows the UI Blocker
Parameters:
stop(timeout)
Stops all UI Blockers
Parameters:
{Number} [timeout] Optional number of milliseconds until the blocker is hidden
Last updated
Was this helpful?