Package-level declarations

Types

Link copied to clipboard

DSL scope interface for structuring items inside a KDashboardGrid.

Link copied to clipboard
data class KDashboardItemState(val id: String, val column: Int, val row: Int, val widthCells: Int = 1, val heightCells: Int = 1)

Represents the current runtime positional state of a dashboard item node.

Link copied to clipboard
class KDashboardStorage(saveAction: (String) -> Unit, loadAction: () -> String?)

Persistence manager handling local JSON read and write operations for dashboard layout schemas.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class KWidget(val type: String, val title: String = "", val tags: Array<String> = [], val icon: String = "", val widthCells: Int = 1, val heightCells: Int = 1)

Annotation marker applied directly to Composable widget functions to register them into the project's central routing registry and metadata catalog via KSP generation.

Link copied to clipboard
Link copied to clipboard
data class KWidgetMetadata(val type: String, val title: String, val tags: List<String>, val icon: String?, val size: String)

Metadata descriptor representing a registered widget available in the application catalog.

Link copied to clipboard
@Serializable
data class KWidgetModel(val id: String, val type: String, val tags: Array<String>, val icon: String?, val title: String, val initialColumn: Int, val initialRow: Int, val widthCells: Int = 1, val heightCells: Int = 1)

Data blueprint representing a persistent layout node model saved to disk storage.

Link copied to clipboard

Functions

Link copied to clipboard
fun KDashboardGrid(cellSize: Dp = 80.dp, modifier: Modifier = Modifier, onItemMoved: (id: String, column: Int, row: Int) -> Unit? = null, content: @Composable KDashboardGridScope.() -> Unit)

A responsive dashboard grid layout engine supporting item dragging, action buttons, dynamic cell sizing, and persistent position callbacks.

Link copied to clipboard