Skip to content

GemLoadingSpinner

Visualizes a loading process or a wait state within the user interface. This component indicates that the system is currently processing a request and may operate in either a determinate or indeterminate mode.

Usage Example

package example_basic;

import mc.fenix.basic.GemLoadingSpinner;
import common.ExamplePage;
import mc.fenix.arrange.GemColumn;

page GemLoadingSpinnerExample() {
  @ExamplePage(
    component = @GemColumn(components = [
      @GemLoadingSpinner(
        size = "100px",
        color = "blue",
        intermediate = false,
        progress = 0.5f,
        label = "50% loaded"
      ),
      @GemLoadingSpinner(
        size = "200px",
        intermediate = true,
        label = "Loading ..."
      )
    ]),
    basePath = "example_basic",
    componentName = "GemLoadingSpinnerExample"
  );
}

GUI Model

component GemLoadingSpinner(
  String size = "100%",

  String color = "#3f51b5",

  boolean intermediate = false,

  float progress,

  String label = ""
)
Name Type Description Default value
size String Defines the dimensional size of the spinner component (e.g., "100%", "500px"). "100%"
color String Specifies the color schema applied to the spinner. "#3f51b5"
intermediate boolean Determines the operational mode of the spinner animation. If set to true, the spinner functions in an indeterminate state, signifying an unknown duration. false
progress float Represents the quantifiable progression of the loading task. This value denotes the completion ratio and must be normalized strictly between 0 and 1.
label String Text shown below the spinner to provide additional context about the loading state. ""