Currently, it's programmatically inserted via a button using this code:
canvas.templates = system.dataset.toDataSet(header,rows)
with the "rows" being a basic data-set, an array of arrays as it could be called, meant to fit the static template canvas dataset columns shown in the header:
header = ["name","template","layout","x","y","width","height","parameters"]
This part I knew from JLabels in Java, and am currently using it. The issue I'm running into is that I'd like to control the label width, while allowing the height to adapt to fit the text within, though even without controlling width, I can't seem to get it to adjust the way I'd like.
An example "rows" dataset converted via the canvas.templates = system.dataset.toDataSet(header,rows)
line above:
rows.append(["TID" + str(num),"LabelTemplate","grow,cell 0 0 1 1,w " + str(system.tag.read("[Client]ColumnWidths/Col0Width").value) + "px",0,0,None,None,'{"labelText":"<html>' + str(CSVReader.rowData[0])+ '</html>"}'])
#"Plain-text" version below:
rows.append(["TID1","LabelTemplate","grow,cell 0 0 1 1,w 50px",0,0,None,None,'{"labelText":"<html>Some random amount of text here!</html>"} ]
Side Note: I'm still playing around with Span vs Cell to lay things out, but had something else inhibiting my progress that I just found and corrected.
To build this, I currently use a basic template with a template canvas in it stretched to fill the working area (this is what's placed in the window, directly), then the "sub-template" is just a template with a label inside of it, stretched to fill the working area of the sub-template and the background filled with a line border applied (multiple instances of this are added when the dataset is applied to the canvas). When I load it into the template canvas, I want to restrict its width (so as not to have a horizontal scrollbar on a half-screen, but also not fill the entire width when maximized), but have its height expand automatically whenever there is a line-break (vertical scroll is allowable). If I make the working area of the template, say, h 50px, I can fit about 3-4 lines of text, any more just "disappear" outside the visual area and a single line has a bunch of empty space below it. As you can see below, it doesn't auto-adjust the height as desired:

As a side question... is there a way to add internal component padding? So the text isn't right up against the border?