Copy to clipboard / property view

Hi team,

I put icon copy to copy to the clipboard data in datatable.

Is it possible in a property view please ?

https://snippet.webix.com/i83qz9c8

Regards,
Xavier

Tricky. Vanillia JS to the rescue.

First, because property value column are completely rewritten when editing, it’s really hard to put your icon in the value column.

Second, i’ve tried using :before pseudo element in the value column, but the problem is that you can NOT querySelector a pseudo element.

Finally, i put your icon in the label column and with some JS, it works.

https://snippet.webix.com/nuoy4c4f

Btw, warning about memleak, you should remove icons event listeners when the view is destroy.

@franck34
Wow your are awesome !!!

Thank you very much !!!

1 Like

So i adapted the snippet to my needs

https://snippet.webix.com/k2qtba70