CLI
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
CLI
clackt
/
net.stephcraft.clackt.select
/
SelectState
Select
State
open
class
SelectState
<
T
,
O
:
SelectOption
<
T
>
>
(
optionsSupplier
:
(
)
->
List
<
O
>
,
defaultCursor
:
Int
?
,
val
pageSize
:
Int
,
val
onHover
:
(
selected
:
IndexedValue
<
O
>
?
)
->
Unit
)
Inheritors
MultiSelectState
Members
Constructors
Select
State
Link copied to clipboard
constructor
(
optionsSupplier
:
(
)
->
List
<
O
>
,
defaultCursor
:
Int
?
,
pageSize
:
Int
,
onHover
:
(
selected
:
IndexedValue
<
O
>
?
)
->
Unit
)
Properties
cursor
Link copied to clipboard
var
cursor
:
Int
filter
Link copied to clipboard
var
filter
:
String
?
filtered
Options
Link copied to clipboard
var
filteredOptions
:
List
<
IndexedValue
<
O
>
>
on
Hover
Link copied to clipboard
val
onHover
:
(
selected
:
IndexedValue
<
O
>
?
)
->
Unit
options
Link copied to clipboard
var
options
:
List
<
O
>
page
Link copied to clipboard
val
page
:
Int
pages
Link copied to clipboard
val
pages
:
Int
page
Size
Link copied to clipboard
val
pageSize
:
Int
selected
Link copied to clipboard
val
selected
:
IndexedValue
<
O
>
?
selected
Index
Link copied to clipboard
val
selectedIndex
:
Int
?
selected
Option
Link copied to clipboard
val
selectedOption
:
O
?
Functions
update
Filtered
Options
Link copied to clipboard
fun
updateFilteredOptions
(
)