Package-level declarations
Types
Link copied to clipboard
class BpkCalendarController(initialParams: CalendarParams, initialSelection: CalendarSelection = CalendarSelection.None, lazyGridState: LazyGridState = LazyGridState(), onSelectionChanged: (CalendarSelection) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class CalendarParams(val selectionMode: CalendarParams.SelectionMode, val range: ClosedRange<LocalDate> = LocalDate.now()..LocalDate.now().plusYears(1), val cellsInfo: Map<LocalDate, CellInfo> = emptyMap(), val locale: Locale = Locale.getDefault(), val dayOfWeekText: TextStyle = findBestWeekdayStyleForLocale(locale), val dateContentDescriptionStyle: FormatStyle = FormatStyle.FULL, val now: LocalDate = LocalDate.now(), val yearLabelInMonthHeader: Boolean = false)
Describes the calendar configuration.
Link copied to clipboard
Describes the current selection in the calendar
Link copied to clipboard
data class CellInfo(val disabled: Boolean = false, val status: CellStatus? = null, val highlighted: Boolean = false, val label: CellLabel = CellLabel.Text(""), val style: CellStatusStyle = CellStatusStyle.Label) : Serializable
Additional information to be added to dates cell
Link copied to clipboard
Describes the label of the cell
Link copied to clipboard
Describes the colouring of the cell
Link copied to clipboard
Describes the colouring behaviour of the cell
Functions
Link copied to clipboard
fun BpkCalendar(controller: BpkCalendarController, modifier: Modifier = Modifier, customDateHandling: (CalendarInteraction) -> Unit? = null, onVisibleMonthsChanged: (Set<YearMonth>) -> Unit? = null)
Link copied to clipboard
fun rememberCalendarController(initialParams: CalendarParams, initialSelection: CalendarSelection = CalendarSelection.None, lazyGridState: LazyGridState = rememberLazyGridState(), onSelectionChanged: (CalendarSelection) -> Unit): BpkCalendarController