DisableSelection
Composable Function
Common
@Composable
fun DisableSelection(content: @Composable () -> Unit)
Disables text selection for its direct or indirect children. To use this, simply add this to wrap one or more text composables.
Code Examples
DisableSelectionSample
@Composable
fun DisableSelectionSample() {
SelectionContainer {
Column {
Text("Text 1")
DisableSelection {
Text("Text 2")
Text("טקסט 3")
}
Text("Text 3")
}
}
}