Thats what I do now. But I don’t have the classes implementing ToolbarButtonInterace, I just write the toolbar definition inline as plain object (or array of objects), and let TypeScript check whether I wrote them correctly. As @timfish suggested, I can use classes instead and then I might be able to use @computedFrom on button properties, I just struggle on how to put it all together, trying to define the @computedFrom dependencies in the body of the “get buttons()”.
1 Like