Access theme settings from js

Re: Access theme settings from js

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There are a couple of supported ways, but the best is probably to set a "data-" attribute on one of the HTML elements in your template. You can then read that attibute's value from the Javascript DOM.