mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-31 23:26:18 +00:00
15 lines
637 B
Plaintext
15 lines
637 B
Plaintext
caption: tm-focus-selector
|
|
created: 20190628162542132
|
|
modified: 20190628162542132
|
|
tags: Messages
|
|
title: WidgetMessage: tm-focus-selector
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The `tm-focus-selector` message sets the focus to the DOM element identified by the selector in the `param` parameter.
|
|
|
|
|!Name |!Description |
|
|
|param |Selector identifying the DOM element to be focussed |
|
|
|paramObject |Optional hashmap of additional parameters to be passed to the [[focus()|https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus]] method |
|
|
|
|
<<.tip """Use preventScroll="true" to prevent the browser from scrolling to the focused element""">>
|