Waiting

Tag Helper <waiting></waiting>

Shows a waiting image while an operation is happening in the background.

Properties

string id
Default: "Waiting"

HTML id attribute of the control

bool do-on-ajax-calls
Default: false

Automatically show this control whenever an Ajax call is in place.

string library-url
Default: /lib/shareit-library/images/

Change the location of the waiting image.

string target-id

Id of another control or div to contain the waiting block to. This allows only part of a page to be waiting.

Javascript

show()

Show the waiting. $('#Waiting').show();

hide()

Show the waiting. $('#Waiting').hide();

fn.SiWaitingShow()

Resize the waiting to a particular element that has been identified with the target-id. $('#WaitingMyGrid').SiWaitingShow()

If doOnAjaxCalls is true then this will automatically show on every javascript ajax call. Otherwise custom Javascript is required to show and hide the image by using the id field.

Example

Razor
<waiting id="WaitingMyGrid" target-id="MyGrid"></waiting>
Javascript
$('#WaitingMyGrid').SiWaitingShow();
This is the section being waited on.