Package com.vanpra.composematerialdialogs.datetime.date

Types

DatePickerColors
Link copied to clipboard
interface DatePickerColors

Represents the colors used by a timepicker and its parts in different states

interface DatePickerColors

Represents the colors used by a timepicker and its parts in different states

DatePickerDefaults
Link copied to clipboard
object DatePickerDefaults

Object to hold default values used by datepicker

object DatePickerDefaults

Object to hold default values used by datepicker

Functions

datepicker
Link copied to clipboard
@Composable
fun MaterialDialogScope.datepicker(initialDate: LocalDate = LocalDate.now(), title: String = "SELECT DATE", colors: DatePickerColors = DatePickerDefaults.colors(), yearRange: IntRange = IntRange(1900, 2100), waitForPositiveButton: Boolean = true, allowedDateValidator: (LocalDate) -> Boolean = { true }, locale: Locale = Locale.getDefault(), onDateChange: (LocalDate) -> Unit = {})
@Composable
fun MaterialDialogScope.datepicker(initialDate: LocalDate = LocalDate.now(), title: String = "SELECT DATE", colors: DatePickerColors = DatePickerDefaults.colors(), yearRange: IntRange = IntRange(1900, 2100), waitForPositiveButton: Boolean = true, allowedDateValidator: (LocalDate) -> Boolean = { true }, locale: Locale = Locale.getDefault(), onDateChange: (LocalDate) -> Unit = {})