Skip to content

Commit

Permalink
Document data-callback.
Browse files Browse the repository at this point in the history
Cleanup links.
  • Loading branch information
dkoes committed Aug 8, 2024
1 parent d525a5a commit a4f2f12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorials/embeddable.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ The contents of the viewer can be set and manipulated through the use of `data-`
- **data-surface** A surface style specification.
- **data-labelres** A residue label style specification.
- **data-zoomto** An {@link AtomSpec} selection specification to zoom to.
- **data-spin** If set will spin the model using {@link $3Dmol.GLViewer#spin}. Can specify axis and speed (e.g. data-spin='axis:z;speed:10')
- **data-spin** If set will spin the model using {@link GLViewer#spin}. Can specify axis and speed (e.g. data-spin='axis:z;speed:10')
- **data-callback** JavaScript function to call upon viewer creation. Receives {@link GLViewer} object as argument.
- **data-ui** If set will show the UI for the viewer.

Multiple selections, styles, residue labels, and surfaces can be provided by appending a suffix
Expand Down

0 comments on commit a4f2f12

Please sign in to comment.