showIndicator
Shows a loading indicator on the UI.
note
You can add multiple loading indicators at the same time. Each indicator will remain visible until explicitly hidden. If multiple indicators are displayed, the last one added will remain visible until it is hidden.
Syntax
engine.ui.showIndicator(id, title, subTitle);
Parameters
Name | Type | Description |
---|---|---|
id | string or number | The id of the indicator. |
title (optional) | string | The title. |
subTitle (optional) | string | The subtitle. |
Example
engine.ui.showIndicator('my-id', 'Loading...', '(1/10)');
Available on: Client