ngl icon indicating copy to clipboard operation
ngl copied to clipboard

info in tooltip

Open hellhorse123 opened this issue 1 year ago • 1 comments

How to change info, which displays in default tootlip? For example, I want to delete filename of atom Screenshot 2024-02-20 at 10 56 26

hellhorse123 avatar Feb 20 '24 07:02 hellhorse123

It can't be configured: https://github.com/nglviewer/ngl/blob/d242234becffbe91c11126079ed22e6930390584/src/controls/picking-proxy.ts#L310

But this would be a nice feature to add (using the same templating syntax as for labels)

ppillot avatar Mar 01 '24 00:03 ppillot

I found a workaround: you can rename the file itself and this solves my problem:

component.structure.name = "Protein"; Screenshot 2024-04-26 at 13 03 57

hellhorse123 avatar Apr 26 '24 10:04 hellhorse123