Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add removeAnnotation by annotation object method #9252

Closed
kutensky opened this issue Oct 26, 2018 · 2 comments
Closed

Add removeAnnotation by annotation object method #9252

kutensky opened this issue Oct 26, 2018 · 2 comments
Assignees

Comments

@kutensky
Copy link

Currently you can remove annotation by calling removeAnnotation(id) method, where id is some value that was passed in options object during creation of Annotation object.
First of all, you don't want to set id for each annotation.
Second, you can't set id for Annotation's object using .Net Highsoft library. There is no Id property in that library.

Good solution would be to add new method or change current removeAnnotation method to be able to pass Annotation object as a parameter.

@pawelfus
Copy link
Contributor

pawelfus commented Oct 26, 2018

Hi @kutensky

Thanks! We agree, that would be useful. In general, ideas should be created in our UserVoice.

Actually this will be supported in v7: http://jsfiddle.net/BlackLabel/dywLou0r/

Thanks for reporting missing id for annotations in .Net extension!

Internal note:
It's missing in tree.json - no relation in extensions, neither our documentation.

@pawelfus pawelfus self-assigned this Oct 26, 2018
@kutensky
Copy link
Author

Great news about v7. Thanks for you response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants