qm-html-paragraph">Adds a context class to an element. </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-comment">// adds the 'hx-positive' class to the element, and removes all other context classes</span>
hx.palette.context(<span class="hljs-string">'.my-element'</span>, <span class="hljs-string">'positive'</span>)</code></pre></div> </div></div><div class="qm-api-group qm-api-arg-group"><div class="qm-api-group-head