NodeRef
NodeRef<S> names an element on a page whose signals are S, for calling the element's DOM methods imperatively.
NodeRef
Attach one to an element with El::node_ref.
| Item | Summary |
|---|---|
NodeRef::new | A reference named name. |
focus | A statement that focuses the element after the next render. |
blur | A statement that removes focus from the element. |
select | A statement that selects the element's text, for an <input>. |
scroll_into_view | A statement that scrolls the element into view. |
show_popover | A statement that shows the element if it is a popover that is not open. |
hide_popover | A statement that hides the element if it is an open popover. |
DialogRef
DialogRef::dialog builds the <dialog> it names, so its statements always act on a dialog.
| Item | Summary |
|---|---|
DialogRef::new | A reference named name. |
dialog | An empty <dialog> that this reference names. |
show_modal | A statement that opens the dialog with showModal(), unless it is open. |
close | A statement that closes the dialog, if it is open. |