Merge pull request #61 from thesabinelim/patch-4

Add Flexbox-specific XML parameter support
This commit is contained in:
Robert Jelic
2023-05-07 22:44:17 +02:00
committed by GitHub

View File

@@ -369,6 +369,19 @@ return {
return object
end,
Flexbox = function(base, basalt)
local object = {
setValuesByXMLData = function(self, data, scripts)
base.setValuesByXMLData(self, data, scripts)
if(xmlValue("flexDirection", data)~=nil)then self:setFlexDirection(xmlValue("flexDirection", data)) end
if(xmlValue("justifyContent", data)~=nil)then self:setJustifyContent(xmlValue("justifyContent", data)) end
if(xmlValue("spacing", data)~=nil)then self:setFlexDirection(xmlValue("spacing", data)) end
return self
end,
}
return object
end,
Button = function(base, basalt)
local object = {
setValuesByXMLData = function(self, data, scripts)