Skip to main content

Types


Input Types

  • text
  • number
  • select
  • radio
  • checkbox
  • slider

Choice

FieldTypeRequired
labelstringtrue
valueanyfalse

Row Data

FieldTypeRequired
typeInput Typesfalse
labelstringfalse
placeholderstringfalse
leftIconstringfalse
rightIconstringfalse
valueanyfalse
choicesChoice[]false

Input Menu Data

FieldTypeRequired
headerstringfalse
leftIconstringfalse
rightIconstringfalse
rowsRow Datatrue

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)