Reload Container children
This commit is contained in:
parent
f7754f4609
commit
27f87b4bae
@ -46,6 +46,7 @@ function Container:_reload()
|
|||||||
for _,child in self:_iterateChildren() do
|
for _,child in self:_iterateChildren() do
|
||||||
if child:_getWindow() ~= win then
|
if child:_getWindow() ~= win then
|
||||||
child:setParent(win)
|
child:setParent(win)
|
||||||
|
child:_reload()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -5,7 +5,7 @@ local Children = Prop:new{ defaultState = {}, uid = "CHILDREN" }
|
|||||||
|
|
||||||
function Children:with(elementType)
|
function Children:with(elementType)
|
||||||
local propSelf = self
|
local propSelf = self
|
||||||
function elementType:_iterateChildren(opts)
|
function elementType:_iterateChildren()
|
||||||
return ipairs(self:_children())
|
return ipairs(self:_children())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -360,9 +360,7 @@ local PAGES = {
|
|||||||
|
|
||||||
local function tabActionButton(count)
|
local function tabActionButton(count)
|
||||||
local text = count < 0 and ("<"..tostring(-count)) or (tostring(count)..">")
|
local text = count < 0 and ("<"..tostring(-count)) or (tostring(count)..">")
|
||||||
return Padding:new{
|
return Text:new{ id = tostring(count), text = text }
|
||||||
element = Text:new{ id = tostring(count), text = text }
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tabActionButtonID(index, interval, count, sign)
|
local function tabActionButtonID(index, interval, count, sign)
|
||||||
@ -410,7 +408,7 @@ local PAGES = {
|
|||||||
|
|
||||||
local ACTION_COUNT = 3
|
local ACTION_COUNT = 3
|
||||||
local ACTION_INTERVAL = 5
|
local ACTION_INTERVAL = 5
|
||||||
local ACTION_SPACING = 1
|
local ACTION_SPACING = 0
|
||||||
|
|
||||||
local actions = {
|
local actions = {
|
||||||
tabActionList(ACTION_INTERVAL, ACTION_COUNT, 1, ACTION_SPACING),
|
tabActionList(ACTION_INTERVAL, ACTION_COUNT, 1, ACTION_SPACING),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user