(Component):new<Type>
Used to create a new Component, and return that new component.
Synopsis
Parameters
Typestring- This is the component type that you want to create.
componentComponent- The initial values for the component, such as
id.
Returns
newComponentComponent- The newly created component.
Examples
local card = tab:newCard()
local list = card:newList({ id = "myList", isNumbered = true })
list:newContainer()
:newText({ text = "Hello world" })
.back
:newText({ text = "Example" })