DropdownOptions
此内容尚不支持你的语言。
Defined in: ui/widgets/dropdown.ts:23
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”buttonStates?
Section titled “buttonStates?”
optionalbuttonStates?:object
Defined in: ui/widgets/dropdown.ts:34
Visual state overrides for the main button.
hover?
Section titled “hover?”
optionalhover?:Color
normal?
Section titled “normal?”
optionalnormal?:Color
pressed?
Section titled “pressed?”
optionalpressed?:Color
disabled?
Section titled “disabled?”
optionaldisabled?:boolean
Defined in: ui/widgets/dropdown.ts:43
Start disabled.
events
Section titled “events”events:
EntityEventQueue
Defined in: ui/widgets/dropdown.ts:25
focusable?
Section titled “focusable?”
optionalfocusable?:boolean
Defined in: ui/widgets/dropdown.ts:45
Participate in Tab traversal + arrow-key selection. Default true.
optionalnode?:UINodeInit
Defined in: ui/widgets/dropdown.ts:27
onSelect?
Section titled “onSelect?”
optionalonSelect?: (index,option,entity) =>void
Defined in: ui/widgets/dropdown.ts:48
Parameters
Section titled “Parameters”number
option
Section titled “option”T
entity
Section titled “entity”number
Returns
Section titled “Returns”void
optionHeight?
Section titled “optionHeight?”
optionaloptionHeight?:number
Defined in: ui/widgets/dropdown.ts:40
Height of each option row in pixels. Default 32.
options
Section titled “options”options: readonly
T[]
Defined in: ui/widgets/dropdown.ts:29
optionToLabel?
Section titled “optionToLabel?”
optionaloptionToLabel?: (option,index) =>string
Defined in: ui/widgets/dropdown.ts:31
Parameters
Section titled “Parameters”option
Section titled “option”T
number
Returns
Section titled “Returns”string
parent?
Section titled “parent?”
optionalparent?:number
Defined in: ui/widgets/dropdown.ts:26
selectedIndex?
Section titled “selectedIndex?”
optionalselectedIndex?:number
Defined in: ui/widgets/dropdown.ts:30
tabIndex?
Section titled “tabIndex?”
optionaltabIndex?:number
Defined in: ui/widgets/dropdown.ts:46
world:
World
Defined in: ui/widgets/dropdown.ts:24