Dates

class Dates(val extraButton: SelectionButton? = null, val onExtraButtonClick: () -> Unit? = null, val negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, val onNegativeClick: () -> Unit? = null, val positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, val selectedDates: List<LocalDate>? = null, val onSelectDates: (dates: List<LocalDate>) -> Unit) : CalendarSelection

Select multiple dates.

Parameters

extraButton

An extra button that can be used for a custom action.

onExtraButtonClick

The listener that is invoked when the extra button is clicked.

negativeButton

The button that will be used as a negative button.

onNegativeClick

The listener that is invoked when the negative button is clicked.

positiveButton

The button that will be used as a positive button.

selectedDates

A list of dates that is selected by default.

onSelectDates

The listener that returns the selected dates.

Constructors

Link copied to clipboard
constructor(extraButton: SelectionButton? = null, onExtraButtonClick: () -> Unit? = null, negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, onNegativeClick: () -> Unit? = null, positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, selectedDates: List<LocalDate>? = null, onSelectDates: (dates: List<LocalDate>) -> Unit)

Properties

Link copied to clipboard
open override val extraButton: SelectionButton? = null
Link copied to clipboard
open override val negativeButton: SelectionButton?
Link copied to clipboard
open override val onExtraButtonClick: () -> Unit? = null
Link copied to clipboard
open override val onNegativeClick: () -> Unit? = null
Link copied to clipboard
val onSelectDates: (dates: List<LocalDate>) -> Unit
Link copied to clipboard
open override val positiveButton: SelectionButton
Link copied to clipboard
Link copied to clipboard