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
/
DataTableCell
Data
Table
Cell
@
Stable
abstract
class
DataTableCell
DataTableItem.items
中的单元格,由派生类保存实际值,表格通过统一接口显示和编辑。
update
失败时保留原值
captureValue
可同时捕获多个字段,用于取消编辑。
Inheritors
DataTableBoolCell
DataTableDateCell
DataTableDateTimeCell
DataTableJsonCell
DataTableNumberCell
DataTableSelectionCell
DataTableTextCell
DataTableTimeCell
Members
Constructors
Data
Table
Cell
Link copied to clipboard
constructor
(
)
Properties
editable
Link copied to clipboard
open
val
editable
:
Boolean
=
true
keyboard
Type
Link copied to clipboard
open
val
keyboardType
:
KeyboardType
text
Link copied to clipboard
abstract
val
text
:
String
Functions
accepts
Input
Link copied to clipboard
open
fun
acceptsInput
(
value
:
String
)
:
Boolean
capture
Value
Link copied to clipboard
abstract
fun
captureValue
(
)
:
(
)
->
Unit
Display
Link copied to clipboard
@
Composable
open
fun
Display
(
modifier
:
Modifier
)
Editor
Link copied to clipboard
@
Composable
open
fun
Editor
(
state
:
DataTableEditState
,
modifier
:
Modifier
)
toggle
Link copied to clipboard
open
fun
toggle
(
)
:
Boolean
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
update
Link copied to clipboard
abstract
fun
update
(
value
:
String
)
:
Boolean