Idle
createIdleTimer
let createIdleTimer( ?idleTimeout: int, ?promptTimeout: int, ?onIdle: Event -> unit, ?onPrompt: Event -> unit, ?onActive: Event -> unit, ?startManually: bool, ?events: Event[], ?element: HtmlElement ): IdleTimerProvides different accessors and methods to observe the user's idle status and react to its changing.
IdleTimer
type IdleTimer = interfacemember isIdle: Accessor<bool>Report user status.
member isPrompted: Accessor<bool>Report user status.
member start: unit -> unitStart the timer.
member stop: unit -> unitStop the timer.
let reset: unit -> unitReset the timer.
let triggerIdle: unit -> unitManually sets isIdle to true and triggers onIdle callback (with custom manualidle event).
Last updated: 7/11/25, 1:35 AM