commonMain.epicarchitect.calendar.compose.datepicker.state.State.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epic-calendar-compose Show documentation
Show all versions of epic-calendar-compose Show documentation
Compose Multiplatform library for displaying epic calendars
The newest version!
package epicarchitect.calendar.compose.datepicker.state
import androidx.compose.runtime.compositionLocalOf
import epicarchitect.calendar.compose.datepicker.config.EpicDatePickerConfig
import epicarchitect.calendar.compose.pager.state.EpicCalendarPagerState
import kotlinx.datetime.LocalDate
interface EpicDatePickerState {
val config: EpicDatePickerConfig
val pagerState: EpicCalendarPagerState
val selectedDates: List
var selectionMode: SelectionMode
fun toggleDateSelection(date: LocalDate)
sealed interface SelectionMode {
data class Single(val maxSize: Int = 1) : SelectionMode
object Range : SelectionMode
}
}
val LocalEpicDatePickerState = compositionLocalOf {
null
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy