Blockbench Reference Docs
Preparing search index...
generated/interface/custom_elements
Internal Types
SelectInput
Class SelectInput<T>
Type Parameters
T
extends
SelectInputOptions
=
any
Index
Constructors
constructor
Methods
set
Properties
node
Constructors
constructor
new
SelectInput
<
T
extends
SelectInputOptions
=
any
>
(
id
:
string
,
data
:
{
default
?:
keyof
T
;
display_icon
?:
boolean
;
options
:
T
|
(
()
=>
T
)
;
value
?:
keyof
T
;
onChange
?
(
value
:
keyof
T
)
:
void
;
onInput
?
(
value
:
keyof
T
,
event
:
Event
)
:
void
;
}
,
)
:
SelectInput
<
T
>
Type Parameters
T
extends
SelectInputOptions
=
any
Parameters
id
:
string
data
:
{
default
?:
keyof
T
;
display_icon
?:
boolean
;
options
:
T
|
(
()
=>
T
)
;
value
?:
keyof
T
;
onChange
?
(
value
:
keyof
T
)
:
void
;
onInput
?
(
value
:
keyof
T
,
event
:
Event
)
:
void
;
}
Optional
default
?:
keyof
T
Optional
display_icon
?:
boolean
Set to true to display the specified icon of the selected option in the UI element
options
:
T
|
(
()
=>
T
)
Optional
value
?:
keyof
T
onChange
?:
function
onChange
?
(
value
:
keyof
T
)
:
void
Parameters
value
:
keyof
T
Returns
void
onInput
?:
function
onInput
?
(
value
:
keyof
T
,
event
:
Event
)
:
void
Parameters
value
:
keyof
T
event
:
Event
Returns
void
Returns
SelectInput
<
T
>
Methods
set
set
(
value
:
keyof
T
,
options
?:
T
,
input_event
?:
Event
)
:
void
Parameters
value
:
keyof
T
Optional
options
:
T
Optional
input_event
:
Event
Returns
void
Properties
node
node
:
HTMLElement
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
set
Properties
node
Blockbench Reference Docs
Loading...
Set to true to display the specified icon of the selected option in the UI element