Skip to content

Widget :function

function Widget(Scope: Scope): (props: WidgetProperties) -> DockWidgetPluginGui
Initializes the component and returns a new function to create that component, which is a PluginGui that displays its contents inside a dockable Roblox Studio window.

Default Syntax

local WidgetComponent = require(PluginComponents.Widget)
local Widget = WidgetComponent(Scope)

Shorthand

local Widget = require(PluginComponents.Widget)(Scope)

Parameters

Scope: Scope The Scope the component will be initialized in.

Returns Function

Parameters

props: WidgetProperties The table which contains the properties of the component that will be created.

Returns

DockWidgetPluginGui