view!() { /* proc-macro */ }Expand description
Declare a screen’s UI declaratively using JSX-like syntax.
§Supported Tags
<h1>, <h2>, <h3>, <p>, <button>, <img>, <input>,
<div>, <span>, <a>
§Supported Attributes
class="..."— CSS class name(s)src="...",alt="...",placeholder="...",href="..."— generic attrsonclick=expr— tap/click handleroninput=expr— input change handleronkeypress=expr— key press handleronfocus=expr— focus handleronblur=expr— blur handler
§Built-in Event Expressions
alert("message")— show native alertlog("message")— log to consolenavigate(ScreenName)— navigate to a screen