commonMain.com.kizitonwose.calendar.compose.ContentHeightMode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform Show documentation
Show all versions of compose-multiplatform Show documentation
A highly customizable calendar library for Compose Multiplatform, backed by LazyRow/LazyColumn.
package com.kizitonwose.calendar.compose
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.height
import androidx.compose.ui.Modifier
/**
* Determines how the height of the day content is calculated.
*/
public enum class ContentHeightMode {
/**
* The day container will wrap its height. This allows you to
* use [Modifier.aspectRatio] if you want square day content
* or [Modifier.height] if you want a specific height value
* for the day content.
*/
Wrap,
/**
* The days in each month will spread to fill the parent's height after
* any available header and footer content height has been accounted for.
* This allows you to use [Modifier.fillMaxHeight] for the day content
* height. With this option, your Calendar composable should also
* be created with [Modifier.fillMaxHeight] or [Modifier.height].
*/
Fill,
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy