Skip to main content

ComboBoxWidget

Class

Class in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

TypeScript only

Index

Properties

Methods

Extends

Constructors

Constructor

new ComboBoxWidget(items?): ComboBoxWidget

Parameters

ParameterType
items?ComboBoxItem[]

Returns

ComboBoxWidget

Overrides

UIWidget.constructor

Properties

items

protected items: ComboBoxItem[]

Methods

addItem()

addItem(label, value?): this

Parameters

ParameterType
labelstring
value?string | number

Returns

this


toString()

toString(): string

Returns

string

Overrides

UIWidget.toString