Skip to main content

Spin

Properties

PropertyTypeDescription
tipstringText shown under spinner
sizesmall, middle, largeSize of the spinner
spinningbooleanControls weather it spins
indicatorstringIcon of spinner
delaynumber"Specifies a delay for loading state"
fullscreenbooleanShow spinner fullscreen

Ant Design Spin

Icons

Children

Spinner does support children.

When spinning = true the children are "darkened out", otherwise they're fully shown. image

Example

myUI:createElement("Spin", {
size = "large",
spinning = true,
})

image

Just moves in-game.

tip

Text displayed under spinner.

There seems to be an issue when tip is set, and no children is given the tip text of offset weirdly.

size

Size of the spinner.

Doesn't really do much, and you can't size it to whatever you want.

spinning

Weather the spinner is spinning, when false all children will be displayed without a overlay.

gif

indicator

The icon of the spinning item.

indicator = "LoadingOutlined":

icon

The icon doesn't move by itself, you have to find a icon fom any design icons that spin if you want it to spin ofc.

delay

"Specifies a delay in milliseconds for loading state (prevent flush)"

fullscreen

When true the spinner is shown fullscreen.

It's set corresponding to parent's offset.