grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Customize the navigator

Open minuwan opened this issue 5 years ago • 3 comments

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.

minuwan avatar Mar 03 '19 07:03 minuwan

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 avatar Mar 03 '19 19:03 NicoEngler

@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 avatar Mar 03 '19 19:03 minuwan

@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.

artf avatar Mar 07 '19 21:03 artf

https://grapesjs.com/docs/modules/Layers.html#customization

artf avatar May 27 '23 10:05 artf