Forum Discussion
tutash
9 years agoBinge Watcher
So what you're saying is: I can define the component.
So how would I define the above object to be the itemComponent if it doesn't have a "name" field? Remember I'm not using markup, and want to create the itemComponent in code.
sub makeGridItem()
m.gridItem = createObject("roSGNode","Rectangle")
m.gridItem.color = "0xFF0000FF"
m.gridItem.width = "100"
m.gridItem.height = "100"
m.gridItem.id = "gridItem"
m.top.appendChild(m.gridItem)
end sub()
So how would I define the above object to be the itemComponent if it doesn't have a "name" field? Remember I'm not using markup, and want to create the itemComponent in code.