grapesjs
grapesjs copied to clipboard
Customize the navigator
Is there any way to customize the view of the navigator/layers panel? I need to display an icon in front of each item in the navigator.
I am not sure what "the navigator" is but since you can create your own panels and whatever, you can customize every bit of the visuals.
Can you be more precise on where you try to add your icons?
@NicoEngler Navigator is the layers panel, GrapesJS called it "The Navigator". Currently, it only contains few configs, but the render it in a different layout or add an icon to a layer item is not possible it seems.
@minuwan well actually the view already renders the icon https://github.com/artf/grapesjs/blob/94e295ef919dceaade90a3aa36355f2e23935657/src/navigator/view/ItemView.js#L47 but the idea of customizing the render of layers it's not bad.
https://grapesjs.com/docs/modules/Layers.html#customization