Blockbench Reference Docs
Preparing search index...
custom/interface
Interface
CustomElements
SelectInput
Class SelectInput<T>
Type Parameters
T
extends
Record
<
string
,
string
>
Index
Constructors
constructor
Methods
set
Properties
node
Constructors
constructor
new
SelectInput
<
T
extends
Record
<
string
,
string
>
>
(
id
:
string
,
options
:
{
default
?:
T
[
keyof
T
]
;
display_icon
?:
boolean
;
options
:
T
;
value
?:
T
[
keyof
T
]
;
onChange
?
(
value
:
T
[
keyof
T
]
)
:
void
;
}
,
)
:
SelectInput
<
T
>
Type Parameters
T
extends
Record
<
string
,
string
>
Parameters
id
:
string
options
:
{
default
?:
T
[
keyof
T
]
;
display_icon
?:
boolean
;
options
:
T
;
value
?:
T
[
keyof
T
]
;
onChange
?
(
value
:
T
[
keyof
T
]
)
:
void
;
}
Optional
default
?:
T
[
keyof
T
]
Optional
display_icon
?:
boolean
Set to true to display the specified icon of the selected option in the UI element
options
:
T
Optional
value
?:
T
[
keyof
T
]
onChange
?:
function
onChange
?
(
value
:
T
[
keyof
T
]
)
:
void
Parameters
value
:
T
[
keyof
T
]
Returns
void
Returns
SelectInput
<
T
>
Methods
set
set
(
value
:
T
[
keyof
T
]
)
:
void
Parameters
value
:
T
[
keyof
T
]
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