Rachel
Toggle table of contents
3.7.2
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.components.data-table
/
love.yinlin.compose.ui.widget
/
DataTableState
Data
Table
State
@
Stable
class
DataTableState
<
T
:
DataTableItem
>
(
columns
:
List
<
DataTableColumn
>
,
items
:
List
<
T
>
=
[]
)
Members
Constructors
Data
Table
State
Link copied to clipboard
constructor
(
columns
:
List
<
DataTableColumn
>
,
items
:
List
<
T
>
=
[]
)
Properties
column
Count
Link copied to clipboard
val
columnCount
:
Int
columns
Link copied to clipboard
val
columns
:
List
<
DataTableColumn
>
editing
Link copied to clipboard
var
editing
:
DataTableEditState
?
error
Link copied to clipboard
var
error
:
Boolean
row
Count
Link copied to clipboard
val
rowCount
:
Int
rows
Link copied to clipboard
val
rows
:
List
<
T
>
selected
Cell
Link copied to clipboard
val
selectedCell
:
DataTableCellPosition
?
sort
Column
Link copied to clipboard
val
sortColumn
:
Int
?
sort
Direction
Link copied to clipboard
var
sortDirection
:
DataTableSortDirection
Functions
add
Link copied to clipboard
fun
add
(
item
:
T
)
:
Boolean
add
All
Link copied to clipboard
fun
addAll
(
items
:
Collection
<
T
>
)
:
Boolean
add
Column
Link copied to clipboard
fun
addColumn
(
column
:
DataTableColumn
,
index
:
Int
=
columnList.size
)
cell
Link copied to clipboard
inline
fun
<
reified
C
:
DataTableCell
>
cell
(
row
:
Int
,
column
:
Int
)
:
C
clear
Link copied to clipboard
fun
clear
(
)
clear
Selection
Link copied to clipboard
fun
clearSelection
(
)
:
Boolean
clear
Sort
Link copied to clipboard
fun
clearSort
(
)
commit
Edit
Link copied to clipboard
fun
commitEdit
(
)
:
Boolean
edit
Cell
Link copied to clipboard
fun
editCell
(
row
:
Int
,
column
:
Int
)
get
Link copied to clipboard
operator
fun
get
(
row
:
Int
)
:
T
move
Column
Link copied to clipboard
fun
moveColumn
(
from
:
Int
,
to
:
Int
)
move
Row
Link copied to clipboard
fun
moveRow
(
from
:
Int
,
to
:
Int
)
remove
Link copied to clipboard
fun
remove
(
item
:
T
)
:
Boolean
fun
remove
(
row
:
Int
)
:
T
remove
Column
Link copied to clipboard
fun
removeColumn
(
column
:
Int
)
:
DataTableColumn
set
Link copied to clipboard
operator
fun
set
(
row
:
Int
,
item
:
T
)
toggle
Sort
Link copied to clipboard
fun
toggleSort
(
column
:
Int
)