mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
16 lines
395 B
Lua
16 lines
395 B
Lua
-- Check if a row is selected
|
|
-- Single function module for data table selection
|
|
|
|
---@class IsSelected
|
|
local M = {}
|
|
|
|
---Check if a row is selected
|
|
---@param state SelectionState Current selection state
|
|
---@param index integer Row index (1-indexed)
|
|
---@return boolean Whether row is selected
|
|
function M.isSelected(state, index)
|
|
return state.selected[index] == true
|
|
end
|
|
|
|
return M
|