react-checkbox-tree icon indicating copy to clipboard operation
react-checkbox-tree copied to clipboard

Option to remove icon

Open RodrigoCarvalhoCode opened this issue 8 years ago • 5 comments

Hi,

There's a way to remove the icons placed in the tree? I just want to work with the labels on it.

Thanks :)

RodrigoCarvalhoCode avatar Apr 24 '17 14:04 RodrigoCarvalhoCode

@RodrigoCarvalho21 Right now you only have really one option. That is to set a CSS rule to hide the icon:

.rct-node-icon {
  display: none;
}

jakezatecky avatar Apr 24 '17 18:04 jakezatecky

I guess that works for now.

Thanks for the answer @jakezatecky 👍

RodrigoCarvalhoCode avatar Apr 26 '17 08:04 RodrigoCarvalhoCode

Hi, any updates on that? Thanks

cvrnogueira avatar Nov 30 '20 14:11 cvrnogueira

@jakezatecky Could it be an option that if you set the default icon to null that it doesn't render the wrapped span element? So for example if you set leaf: null then the wrapped <span class="rct-node-icon"></span> doesn't render either.

JordyPouw avatar Sep 30 '21 13:09 JordyPouw

@JordyPouw Yes, that is something we could support.

jakezatecky avatar Sep 30 '21 20:09 jakezatecky