function multiButtonWidget()
-- Create individual widgets for the items
local item1 = widgets.button("All1", function()
editor.navigate("Journals")
end)
local item2 = widgets.button("All2", function()
editor.navigate("Journals2")
end)
-- how do I combine 2 buttons into 1 widget???
-- google AI gave `widget.hstack`, but it doesn't work
-- below is just my intuitive attemp, but doesn't work as well
return widget.new {
html = item1
}
end
event.listen {
name = "hooks:renderTopWidgets",
run = function(e)
-- doesn't work
return multiButtonWidget()
end
}
spent over an hour tearing my hair out… none of the examples help.. only simple basics and nothing more Widget
apprecaite any help thanks