Skip to content

Dropdown :function

function Dropdown(Scope: Scope): (props: DropdownProperties) -> Frame
Initializes the component and returns a new function to create that component, which is a button that shows the selected item and a list of items in a dropdown when clicking on it.

Default Syntax

local DropdownComponent = require(StudioComponents.Dropdown)
local Dropdown = DropdownComponent(Scope)

Shorthand

local Dropdown = require(StudioComponents.Dropdown)(Scope)

Parameters

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

Returns Function

Parameters

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

Returns

Frame