mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
19 lines
424 B
Lua
19 lines
424 B
Lua
-- Create initial selection state
|
|
-- Single function module for data table selection
|
|
|
|
---@class CreateSelectionState
|
|
local M = {}
|
|
|
|
---Create initial selection state
|
|
---@param mode? "single" | "multiple" Selection mode (default: "multiple")
|
|
---@return SelectionState
|
|
function M.createSelectionState(mode)
|
|
return {
|
|
selected = {},
|
|
mode = mode or "multiple",
|
|
lastSelected = nil
|
|
}
|
|
end
|
|
|
|
return M
|