(<span class="hljs-string">'#toggle1'</span>)

toggle1.on(<span class="hljs-string">'change'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  hx.notify.info(<span class="hljs-string">"Toggle 1 set to "</span> + (data ? <span class="hljs-string">"on"</span> : <span class="hljs-string">"off"</span>));
})

toggle2 = <span class="hljs-keyword">new</span> hx.ToggleButton(<span class="hljs-string">'#toggle2'</span>, {<span class="hljs