SelectAllSample
@Composable
fun SelectAllSample() {
val selectionState = rememberSelectionState()
Column {
Button(onClick = { selectionState.selectAll() }) { BasicText("Select All") }
SelectionContainer(state = selectionState) { BasicText(text = "Text to be selected...") }
}
}
SelectionSample
@Composable
fun SelectionSample() {
SelectionContainer {
Column {
Text("Text 1")
Text("Text 2")
Text("טקסט 3")
}
}
}