KDashboardGridScope

DSL scope interface for structuring items inside a KDashboardGrid.

Functions

Link copied to clipboard
abstract fun actionItem(id: String, initialColumn: Int, initialRow: Int, widthCells: Int = 1, heightCells: Int = 1, onClick: () -> Unit, content: @Composable () -> Unit)

Adds a static or click-interactive action cell that cannot be dragged.

Link copied to clipboard
abstract fun item(id: String, initialColumn: Int, initialRow: Int, widthCells: Int = 1, heightCells: Int = 1, content: @Composable () -> Unit)

Adds a standard, user-draggable widget node to the dashboard grid.