//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.messages.ui/TranslateEditableField
TranslateEditableField
[jvm]\
@Composable
fun TranslateEditableField(unit: TranslationUnit, focusRequester: FocusRequester = remember { FocusRequester() }, active: Boolean = false, updateTextSwitch: Boolean = false, enabled: Boolean = true, spellingErrors: List<SpellCheckCorrection> = emptyList(), onStartEditing: () -> Unit = {}, onTextChanged: (String) -> Unit = {}, onAddToGlossary: (String) -> Unit = {}, onIgnoreWord: (String) -> Unit = {})
Translation editable field.
Parameters
jvm
unit | translation unit |
focusRequester | focus requester |
active | flag indicating whether this is the currently edited segment |
updateTextSwitch | flag to trigger text updates programmatically |
enabled | flag indicating whether this field should be enabled |
spellingErrors | list of spelling errors detected |
onStartEditing | on start editing callback |
onTextChanged | on text changed callback |
onAddToGlossary | on add to glossary callback |
onIgnoreWord | on ignore word callback |