Skip to content

Widgets

Functions for controlling Administers homepage widget system. For more information on how to make a widget, please see the Widgets help guide.

Widgets.GetAvailableWidgets

Gets a list of widgets available to the client for use.

luau
Widgets.GetAvailableWidgets(): {
    Small: { { any } },
    Large: { { any } }
}
luau
print(`We have the following widgets available: {Widgets.GetAvailableWidgets()}`)

Widgets.Edit

Internal function for opening the Edit Widget UI.

luau
Widgets.Edit(
    ContainingUI: Frame
): ()
luau
script.Parent.EditWidget.MouseButton1Click:Connect(function()
    Widgets.Edit(script.Parent)
end)

Widgets.Initialize

Loads (or reloads) saved widgets to the homepage. Data is pulled from the _HomeWidgets panel attribute which is assigned at runtime and not updated.

luau
Widgets.Initialize(): ()
luau
Widgets.Initialize()