Jenga Date Picker Dialog
A modal dialog holding a JengaDatePicker with confirm and dismiss actions. The confirm action is enabled once a date is picked.
Parameters
called when the dialog is dismissed (dismiss action, scrim tap or back).
called with the picked date when the confirm action is tapped.
the confirm action label.
the dismiss action label.
the title for a month (e.g. "March 2026").
the column label for a day of the week (e.g. "Mo").
accessibility label for the previous-month button.
accessibility label for the next-month button.
the Modifier for the dialog surface.
the date selected when the dialog opens.
whether a date can be picked.
accessibility label for a day cell; the ISO date by default.
the color set; defaults to JengaCalendarDefaults.colors.
the earliest and latest dates that can be picked; see JengaDatePicker.
when set, the month title opens a grid of years; see JengaDatePicker.
Samples
var open by remember {
mutableStateOf(
value = true,
)
}
if (open) {
JengaDatePickerDialog(
onDismissRequest = { open = false },
onConfirm = { open = false },
confirmLabel = "OK",
dismissLabel = "Cancel",
monthTitle = { "${it.month.name} ${it.year}" },
dayOfWeekLabel = {
it.name.take(
n = 2,
)
},
previousMonthContentDescription = "Previous month",
nextMonthContentDescription = "Next month",
)
}