function ToolbarButton(Scope: Scope): (props: ToolbarButtonProperties) -> PluginToolbarButton
Initializes the component and returns a new function to create that component, which is an object that allows the user to initiate a single, one-off action in Roblox Studio through the Click event.
Default Syntax
local ToolbarButtonComponent = require(PluginComponents.ToolbarButton)
local ToolbarButton = ToolbarButtonComponent(Scope)
Shorthand
local ToolbarButton = require(PluginComponents.ToolbarButton)(Scope)
Parameters
Scope: Scope |
The Scope the component will be initialized in. |
Returns Function