You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2><aclass="toc-backref" id="application-multi-access" href="#application-multi-access">Multi Access</a></h2><p><aclass="reference external" href="For some reason using markdown doesn't work for images..."></a></p>
816
-
<imgsrc="https://webui.me/docs/data/webui_access_denied.png" alt="WebUI access denied image"/><p>After the window is loaded, for safety, the used URL is not valid anymore, if someone else tries to access the URL WebUI will show an error. To allow multi-user access to the same URL, you can use <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">multiAccess</span><spanclass="Operator">=</span></span></tt>.</p>
826
+
<imgsrc="https://webui.me/docs/data/webui_access_denied.png" alt="WebUI access denied image"/><p>After the window is loaded, for safety, the used URL is not valid anymore, if someone else tries to access the URL, WebUI will show an error. To allow multi-user access to the same URL, you can use <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">multiAccess</span><spanclass="Operator">=</span></span></tt>.</p>
<h2><aclass="toc-backref" id="event-event" href="#event-event">Event</a></h2><p>When you use <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">window</span><spanclass="Operator">.</span><spanclass="Keyword">bind</span><spanclass="Punctuation">(</span><spanclass="Punctuation">)</span></span></tt>, your application will receive an event every time the user clicks on the specified HTML element. The event comes with the <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">elementName</span></span></tt>, which is The HTML ID of the clicked element, for example, <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">MyButton</span></span></tt>, <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">MyInput</span></span></tt>, etc., The event also comes with the WebUI unique element ID & the unique window ID. Those two IDs are not generally needed.</p>
831
+
<h2><aclass="toc-backref" id="event-event" href="#event-event">Event</a></h2><p>When you use <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">window</span><spanclass="Operator">.</span><spanclass="Keyword">bind</span><spanclass="Punctuation">(</span><spanclass="Punctuation">)</span></span></tt>, your application will receive an event every time the user clicks on the specified HTML element. The event comes with the <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">elementName</span></span></tt>, which is the HTML ID of the clicked element, for example, <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">MyButton</span></span></tt>, <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">MyInput</span></span></tt>, etc. The event also comes with the WebUI unique element ID & the unique window ID. Those two IDs are not generally needed.</p>
<spanclass="Identifier">echo</span><spanclass="StringLit">"Hi!, You clicked on "</span><spanclass="Punctuation">,</span><spanclass="Identifier">e</span><spanclass="Operator">.</span><spanclass="Identifier">elementName</span><spanclass="Punctuation">,</span><spanclass="StringLit">" element"</span>
Bind <ttclass="docutils literal"><spanclass="pre"><spanclass="Keyword">func</span></span></tt> to element <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">element</span></span></tt> and automatically pass return value of <ttclass="docutils literal"><spanclass="pre"><spanclass="Keyword">func</span></span></tt> to Javascript Bind <ttclass="docutils literal"><spanclass="pre"><spanclass="Keyword">func</span></span></tt> to element <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">element</span></span></tt> and automatically pass return value of <ttclass="docutils literal"><spanclass="pre"><spanclass="Keyword">func</span></span></tt> to Javascript
1007
+
Bind <ttclass="docutils literal"><spanclass="pre"><spanclass="Keyword">func</span></span></tt> to element <ttclass="docutils literal"><spanclass="pre"><spanclass="Identifier">element</span></span></tt> and automatically pass return value of <ttclass="docutils literal"><spanclass="pre"><spanclass="Keyword">func</span></span></tt> to Javascript
0 commit comments