Skip to content

Buttons and JS #7067

Answered by alexvoss
IvyMasterDiego asked this question in Q&A
Apr 19, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The Markdown code you posted produces a link to the JavaScript. It does nothing to execute it. The JavaScript in Material works the same as it would for any website. You can add extra JavaScript to be loaded into your pages with the extra_javascript option.

The best thing to do is to register a function that will run once the page is fully loaded and will itself register handlers for events on the buttons as needed. The basics of how to register such a callback are described in the "How to integrate with third-party JavaScript libraries" admonition in the documentation (as linked to above).

Hope this helps.

Replies: 1 comment 2 replies

Comment options

alexvoss
Apr 19, 2024
Collaborator Sponsor

You must be logged in to vote
2 replies
@IvyMasterDiego
Comment options

@alexvoss
Comment options

alexvoss Apr 19, 2024
Collaborator Sponsor

Answer selected by alexvoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants