mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
27 lines
822 B
Lua
27 lines
822 B
Lua
-- Level 4 layout module
|
|
-- Aggregates layout component modules for the Level 4 UI
|
|
|
|
---@alias GodSidebarFn fun(items?: table[]): table
|
|
---@alias GodToolbarFn fun(actions?: table[]): table
|
|
---@alias GodContentFn fun(children?: table[]): table
|
|
---@alias RenderFn fun(ctx: RenderContext): UIComponent
|
|
---@alias TabsFn fun(ctx: RenderContext): UIComponent
|
|
|
|
---@class LayoutModule
|
|
---@field god_sidebar GodSidebarFn
|
|
---@field god_toolbar GodToolbarFn
|
|
---@field god_content GodContentFn
|
|
---@field render RenderFn
|
|
---@field tabs TabsFn
|
|
|
|
---@type LayoutModule
|
|
local layout = {
|
|
god_sidebar = require("layout.god_sidebar"),
|
|
god_toolbar = require("layout.god_toolbar"),
|
|
god_content = require("layout.god_content"),
|
|
render = require("layout.render"),
|
|
tabs = require("layout.tabs")
|
|
}
|
|
|
|
return layout
|