vpusher / paper-tree

Browsable tree of nodes with expandable/collapsible capabilities and actions menu
MIT License
27 stars 24 forks source link

Examples of changing the +/- icons #7

Closed hegsie closed 7 years ago

hegsie commented 7 years ago

Hi,

Do you have any examples of changing the +/- icons to an different icon?

Regards

vpusher commented 7 years ago

@hegsie, currently you can only use the --paper-tree-toggle-theme mixin to override the style of the expand/collapse icons. To change the icon simply use the content CSS property and set the unicode character you need as value. You can see a sample of this mixin in the lazyloading demo.

I know something better can be done here, probably using an iron-icon instead. I need to think a bit about it and noticeably on the API/Mixin opening.

vpusher commented 7 years ago

@hegsie if the related mixin is not enough for you, please feel free to open an issue as a feature request or better, submit a PR.