Idle
Detects user inactivity by listening for mouse, keyboard, scroll, and resize events. Emits events so the app can warn that the user will be logged out soon by displaying a warning dialog.
certara-idle
Section titled “certara-idle”Properties
Section titled “Properties”disabled
| Attribute | disabled |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the idle component will be disabled |
heartbeatInterval
| Attribute | heartbeat-interval |
| Type | number |
| Default | 10000 |
| Required | false |
| Description | The number of milliseconds to wait before the certaraHeartbeat event is emitted |
Events
Section titled “Events”| Name | Description | Bubbles |
|---|---|---|
certaraHeartbeat | Event emitted each time the heartbeat interval elapses | true |
Methods
Section titled “Methods”| Name | Signature | Description |
|---|---|---|
setActive | () => Promise<void> | |
setInactive | () => Promise<void> |
| Name | Description |
|---|---|
alert-body | The body to display in the modal |
alert-heading | The heading to display in the modal |