Skip to content

docs(toolbar): document element param instead of html#895

Merged
henrikingo merged 1 commit into
impress:masterfrom
Hashim1999164:fix/toolbar-plugin-docs
Jul 23, 2026
Merged

docs(toolbar): document element param instead of html#895
henrikingo merged 1 commit into
impress:masterfrom
Hashim1999164:fix/toolbar-plugin-docs

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update the toolbar plugin header docs to use detail.element (a DOM node), matching the implementation and navigation-ui.
  • Remove the outdated html / callback / impress:toolbar:added guidance, since that event is never fired.

Fixes #771.

Test plan

  • Read src/plugins/toolbar/toolbar.js header and confirm it matches appendChild / insertBefore listeners
  • Cross-check against navigation-ui.js toolbar usage

The toolbar plugin accepts a DOM element via detail.element and does not
fire impress:toolbar:added. Align the plugin header docs with the
implementation and navigation-ui usage. Fixes impress#771.
@henrikingo
henrikingo merged commit b44b969 into impress:master Jul 23, 2026
4 checks passed
@henrikingo

Copy link
Copy Markdown
Member

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doc of toolbar needs update

2 participants