Text Field Dialog
fun TextFieldDialog(inputValue: String, onInputValueChange: (String) -> Unit, modifier: Modifier = Modifier, title: String = "", hintText: String = stringResource(id = R.string.sb_text_channel_settings_change_channel_name_hint), positiveButtonText: String = stringResource(id = R.string.sb_text_button_save), onPositiveButtonClick: () -> Unit = {}, negativeButtonText: String = stringResource(id = R.string.sb_text_button_cancel), onNegativeButtonClick: () -> Unit = {}, onDismissRequest: () -> Unit = {})
Represents a dialog containing a text field.
Since
1.0.0-beta.1
Parameters
input Value
The value of the text field.
on Input Value Change
The handler for when the value of the text field changes.
modifier
The modifier to be applied to the view.
title
The title of the dialog. Defaults to an empty string.
positive Button Text
The text of the positive button. Defaults to "Save".
on Positive Button Click
The handler for when the user clicks on the positive button.
negative Button Text
The text of the negative button. Defaults to "Cancel".
on Negative Button Click
The handler for when the user clicks on the negative button.
on Dismiss Request
The handler for when the user dismisses the dialog.