Block UI

Block UI

Welcome to the svyBlockUI wiki!

Introduction

svyBlockUI is a simple service to block the UI either with a message and/or a spinner. The service can be used to let the user know that a certain operation may take a while for example.

The UI is blocked by an overlay that prevents the user from clicking anywhere in the background while the UI is blocked. The services provides 11 different spinners and the possibility to update the message during a process

Here is a screenshot of a blocked UI with message and the "Tree bounce" spinner.

svyBlockUI in NGClient2

svyBlockUI in NGClient2

In NGClient2 , we use a different library for svyBlockUI implementation. The styling of the new component is different than NGClient1, the UI customizations are currently not available currently in NGClient2 as those should be done via CSS. The classes to use are: block-ui-wrapper (all overlay), loader (child class for spinner implementation) and message (child class for message).

Table of contents

svyBlockUI properties

The service has the following properties:

svyBlockUI API

show

Blocks the UI, optionally showing the given message.

Params

Returns void

stop

Stops (hides) all UI blockers.

Params none

Returns void

setMessage

Updates the message shown

Params

Returns void

Last updated