commonMain.io.github.windedge.table.TableDslBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of table-jvm Show documentation
Show all versions of table-jvm Show documentation
Construct an object with copy and map
package io.github.windedge.table
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@DslMarker
annotation class TableDslBuilder
@TableDslBuilder
interface ColumnBuilder {
fun column(
modifier: Modifier = Modifier,
contentAlignment: Alignment = Alignment.CenterStart,
composable: @Composable() (BoxScope.() -> Unit)
)
fun headerBackground(composable: @Composable () -> Unit)
}
@TableDslBuilder
interface RowsBuilder {
fun row(modifier: Modifier = Modifier, content: RowBuilderImpl.() -> Unit)
}
@TableDslBuilder
interface RowBuilder {
fun cell(
modifier: Modifier = Modifier,
contentAlignment: Alignment = Alignment.CenterStart,
content: @Composable() (BoxScope.() -> Unit)
)
}