Waiting Indicator
When the DikeGrid is waiting or processing rows of data, it shows a message. You can customize this message.
Last updated
When the DikeGrid is waiting or processing rows of data, it shows a message. You can customize this message.
Last updated
The DikeGrid definition overlaps a div
element over the primary DikeGrid container, as you can see in the following screenshot. The yellow highlighted div
is the primary DikeGrid container.
When the DikeGrid instance is waiting for the rows of data to display, it blocks its UI and shows a message. The message indicates this waiting.
Let us add a delay when the SampleData service loads the rows of data to see the displayed message.
You can customize the displayed message by providing an Injection Token called LOADING_MESSAGE
.
Let us give the module this value for the above Injection Token.
When the DikeGrid instance is processing an edition operation, it blocks its UI and shows a processing message.
You can customize the displayed message by providing an Injection Token called PROCESSING_MESSAGE
.
When you query a DikeGridComponent
instance from the view, you can access a property called waitingIndicator
of type DikeGridWaitingIndicator
.
See the DikeGridWaitingIndicator
definition for more details.
You can show the Waiting Indicator imperatively invoking the methods defined in the waitingIndicator
property.
Let us modify the code to allow entering a custom message and display it.
The previous configuration adds:
A textbox to enter the custom message.
Two buttons to display and hide the Waiting Indicator, respectively.
Callbacks in the prior UI controls.
Then, clicking on the Show Indicator button generates the following output: