Is there a way to get palette entries and container ?
As when trying to inject palette provider and log its entries and container, returns undefined
Please share the code you’re referring to. Otherwise we can’t help you.
export default function Search(palette) {
this._palette = palette;
console.log(this._palette._entries, this._palette._container);
}
Search.$inject = [
'palette'
];
logs undefined
i know this error because getPaletteEntries not called and populated the palette with entries yet, but is there a way to get them ?
Make sure the diagram is loaded before you want to do stuff
eventBus.on('diagram.init', function() {
// do stuff
});
Cf. Diagram.js