Skip to content

Toolbar :function

function Toolbar(Scope: Scope): (props: ToolbarProperties) -> PluginToolbar
Initializes the component and returns a new function to create that component, which is an object used to create PluginToolbarButtons.

Default Syntax

local ToolbarComponent = require(PluginComponents.Toolbar)
local Toolbar = ToolbarComponent(Scope)

Shorthand

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

Parameters

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

Returns Function

Parameters

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

Returns

PluginToolbar