Skip to content

Event hook plugins #47

@tdudgeon

Description

@tdudgeon

I want to add some extra functionality to the pose viewer that would be much more useful if this could be done in a generic manner.
The scenario is when a molecule is selected in the card view and therefore displayed in NGL viewer we want to be able to execute some additional Javascript that adds extra components (shapes, arrows ...) to NGL, and then removed when the molecule is de-selected.
The Javascript is relatively simple and just needs data from the selected card. It is very specific to a particular purpose and should only be used when applicable, so would be best thought of as a plugin that can be added when needed.

I can see a library of predefined functions that can be used as hooks as well as the ability to define new ones.

For now just think this through. We'll define this more fully once we've done some initial brainstorming.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions