Hi everybody,
I am looking for a way to make a widget which produces a similar table layout (without images) as the attached, FireyFeeds widget.
At the moment I try my best with the following code, but no table cells are created. Even worse, the two items are just aliged beside each other.
I highly appreciate if you could give me a hint or an example how to modify the code to achieve the prefered table layout.
Best
Andy
function createWidget() {
let items = [["Das", "https://www.heise.de/"],
["ein", "https://www.macrumors.com/"]];
let list = new ListWidget()
list.addText("News").leftAlignText()
list.addSpacer(10)
let mainStack = list.addStack()
let leftStack = mainStack.addStack()
leftStack.layoutVertically()
leftStack.addText(items[0][0])
leftStack.url=items[0][1]
list.addSpacer(10)
let rightStack = mainStack.addStack()
rightStack.layoutVertically()
rightStack.addText(items[1][0])
rightStack.url=items[1][1]
list.addSpacer(10)
return list;
}