mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
- Added type annotations and class definitions in the dashboard layout, stats, and data table modules for improved type safety and documentation. - Introduced new classes for UI components, props, and configuration in the form builder, navigation menu, notification center, and UI dialogs packages. - Implemented detailed type definitions for actions, fields, and pagination components to streamline usage and enhance clarity. - Updated initialization functions in multiple packages to include versioning and installation context. - Improved structure and readability of the codebase by organizing and documenting component properties and methods.
23 lines
499 B
Lua
23 lines
499 B
Lua
-- Dashboard grid layout
|
|
|
|
---@class GridLayoutConfig
|
|
---@field type string
|
|
---@field columns number
|
|
---@field rows? number
|
|
---@field gap number
|
|
|
|
---@param columns? number Number of columns (default: 3)
|
|
---@param rows? number Number of rows (optional)
|
|
---@param gap? number Gap between items in pixels (default: 16)
|
|
---@return GridLayoutConfig
|
|
local function grid(columns, rows, gap)
|
|
return {
|
|
type = "grid",
|
|
columns = columns or 3,
|
|
rows = rows,
|
|
gap = gap or 16
|
|
}
|
|
end
|
|
|
|
return grid
|