mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Add columnlist:GetColumnName
This commit is contained in:
parent
9626e7ef8c
commit
3d46bf900f
@ -677,6 +677,24 @@ function newobject:SetColumnName(id, name)
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetColumnName(id)
|
||||
- desc: gets a column's name
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetColumnName(id)
|
||||
|
||||
local children = self.children
|
||||
|
||||
for k, v in ipairs(children) do
|
||||
if k == id then
|
||||
return v.name
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SizeToChildren(max)
|
||||
- desc: sizes the object to match the combined height
|
||||
|
Loading…
Reference in New Issue
Block a user