Class Dom
Constructors
constructor
-
Parameters
- _options: DomOptions = DefaultDomOptions
Returns Dom
Accessors
document
-
Returns Document
navigator
-
Returns Navigator
toast
-
get toast(): Notyf
Returns Notyf
window
-
Returns Window
Methods
disableMobileControls
-
Returns void
enableMobileControls
-
Parameters
- onKey: (key: string, code: string) => void
Returns void
init
-
topbar, notyf and the notyf stylesheet touch
window/documentat import or construction, so they load here, in a browser only.Returns Promise<void>
showTtyIndicator
-
Shows a quick flash indicator for the TTY number in the top-right corner
Parameters
- ttyNumber: number
TTY number to display
Returns void
- ttyNumber: number
topbar
-
Parameters
Optionalshow: boolean
Returns Promise<void>
topbarConfig
-
Parameters
- options: TopbarConfigOptions
Returns Promise<void>
topbarProgress
-
Parameters
- value: number
Returns Promise<void>
Toast notifications; a silent stand-in when there is no DOM (or before
init).