PluginToolbar
This class is not creatable. Instances of this class cannot be created with Instance.new.
Memory category | Instances |
---|
Member index 2
Removed member index 1
History | Member | |
---|---|---|
371 | CreateButtonWithId(buttonId: string, text: string, tooltip: string, iconname: string): Instance |
Description
A PluginToolbar is an object created by using the Plugin:CreateToolbar() method. It is used to create PluginToolbarButtons using the CreateButton function. In general, it is good practice for a plugin to use one and only one uniquely named toolbar for all of its buttons. In Studio, toolbars are rendered under the Plugins tab.
The following code sample creates a basic toolbar with one button. It should be run as a Studio plugin, not as a Script.
local toolbar = plugin:CreateToolbar("Three Wise Monkeys")
local button = toolbar:CreateButton("Mizaru", "See No Evil", "rbxassetid://2778270261")
History 9
- 617 Change ReturnType of CreatePopupButton from Instance to PluginToolbarButton
- 617 Change ReturnType of CreateButton from Instance to PluginToolbarButton
- 589 Add CreatePopupButton
- 462 Change ThreadSafety of CreateButton from to Unsafe
- 371 Remove CreateButtonWithId
- 371 Change Parameters of CreateButton from (text: string, tooltip: string, iconname: string) to (buttonId: string, tooltip: string, iconname: string, text: string = )
- 369 Add CreateButtonWithId
- 367 Add CreateButton
- 367 Add PluginToolbar
Members 2
CreateButton
Parameters (4) | Default | |
---|---|---|
buttonId | string | |
tooltip | string | |
iconname | string | |
text | string | |
Returns (1) | ||
PluginToolbarButton |
Creates a PluginToolbarButton that allows the user to initiate a single, one-off action in Studio through its Click event.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 617 Change ReturnType of CreateButton from Instance to PluginToolbarButton
- 462 Change ThreadSafety of CreateButton from to Unsafe
- 371 Change Parameters of CreateButton from (text: string, tooltip: string, iconname: string) to (buttonId: string, tooltip: string, iconname: string, text: string = )
- 367 Add CreateButton
CreatePopupButton
Parameters (4) | Default | |
---|---|---|
buttonId | string | |
tooltip | string | |
iconname | string | |
text | string | |
Returns (1) | ||
PluginToolbarButton |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 617 Change ReturnType of CreatePopupButton from Instance to PluginToolbarButton
- 589 Add CreatePopupButton
Removed members 1
CreateButtonWithId
Parameters (4) | ||
---|---|---|
buttonId | string | |
text | string | |
tooltip | string | |
iconname | string | |
Returns (1) | ||
Instance |
Security | PluginSecurity |
---|
History 2
- 371 Remove CreateButtonWithId
- 369 Add CreateButtonWithId