Input Menu Usage

Types


Input Types

  • text

  • number

  • select

  • radio

  • checkbox

  • slider

Choice

Field
Type
Required

label

string

value

any

Row Data

Field
Type
Required

label

string

placeholder

string

leftIcon

string

rightIcon

string

value

any

choices

Input Menu Data

Field
Type
Required

header

string

leftIcon

string

rightIcon

string

Examples


Creating Input Menu

local inputMenuData = {
    leftIcon = "envelope",
    header = "Mail",
    rows = {
        {
            label = "To",
            placeholder = "5XX-XXXX",
            type = "text"
        },
        {
            label = "Content"
        }
    }
}

local inputMenu = exports["no-contextmenu"]:CreateInputMenu(inputMenuData)

-- menu closed
if not inputMenu then return end

local to, content = table.unpack(inputMenu)

Last updated