deskit
Toggle table of contents
1.5.0
jvm
Platform filter
jvm
Switch theme
Search in API
deskit
deskit
/
deskit.dialogs.confirmation
Package-level
declarations
Functions
Functions
Confirmation
Dialog
Link copied to clipboard
@
Composable
fun
ConfirmationDialog
(
width
:
Dp
=
450.dp
,
height
:
Dp
=
230.dp
,
resizable
:
Boolean
=
false
,
title
:
String
=
"Confirmation"
,
message
:
String
=
"Please confirm to proceed"
,
icon
:
Painter
?
=
null
,
iconSize
:
DpSize
=
DpSize(64.dp, 64.dp)
,
colors
:
ConfirmationDialogColors
=
ConfirmationDialogDefaults.colors()
,
confirmButtonText
:
String
=
"OK"
,
cancelButtonText
:
String
=
"Cancel"
,
onConfirm
:
(
)
->
Unit
,
onCancel
:
(
)
->
Unit
,
onClose
:
(
)
->
Unit
=
onCancel
,
content
:
@
Composable
(
)
->
Unit
=
{ Text( text = message, style = MaterialTheme.typography.bodyLarge, textAlign = TextAlign.Center, modifier = Modifier.fillMaxWidth() ) }
)
Displays a modal dialog to request user confirmation for an action.