elements icon indicating copy to clipboard operation
elements copied to clipboard

Tree Action Icon

Open qarlosalberto opened this issue 2 months ago • 3 comments

I was using the previous version of the library. With the latest version, how can I add actions icons to the tree item? Could you include an example?

qarlosalberto avatar Oct 24 '25 23:10 qarlosalberto

You can add them manually (see the "rich content" example on the docs page). Maybe later an "actions" slot will be introduced, but for now there is no dedicated place for that.

Also, check my comment here: https://github.com/vscode-elements/elements/pull/549#issuecomment-3453474775

bendera avatar Oct 27 '25 22:10 bendera

Got it! The "actions" slot would be great.

qarlosalberto avatar Oct 28 '25 08:10 qarlosalberto

Have you an example? I´m trying to use the "rich content" example to add an action at the end of the item but I can´t.

Image

qarlosalberto avatar Oct 28 '25 19:10 qarlosalberto