craft.js icon indicating copy to clipboard operation
craft.js copied to clipboard

Custom the Layers

Open ChrisNg02655332 opened this issue 4 years ago • 6 comments

Hi everyone, I would like to say that’s this library is the one I want to get last year. Thank you for making it. whether I can find the example about custom layers? Thank you in advance.

ChrisNg02655332 avatar Aug 04 '20 09:08 ChrisNg02655332

Do you mean custom layers pane or?

RaGreen avatar Aug 18 '20 07:08 RaGreen

I would like to know how to customize the colors in the layers pane

gcphost avatar Jan 24 '23 20:01 gcphost

still searching for this ans

kbone1997 avatar Jan 25 '24 09:01 kbone1997

Is there any way to create a custom UI for individual layer cards?

TarekFaysal avatar Feb 02 '24 11:02 TarekFaysal

Is there any way to create a custom UI for individual layer cards?

Yes, there is a prop (renderLayer) which can be used to custom the layer UI.

  1. <Layers renderLayer={LayersRenderer} expandRootOnLoad />
  2. Implement the UI Component LayerRenderer, you can reference the url DefaultLayer.tsx

superlc avatar May 22 '24 04:05 superlc