Skip to content

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.

HTML
React
Angular
Show sign-out warning
<certara-idle></certara-idle>
import { CertaraIdle } from '@certara/certara-ui-react';
<CertaraIdle />
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-idle></certara-idle>

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionIf true, the idle component will be disabled

heartbeatInterval

Attributeheartbeat-interval
Typenumber
Default10000
Requiredfalse
DescriptionThe number of milliseconds to wait before the certaraHeartbeat event is emitted
NameDescriptionBubbles
certaraHeartbeatEvent emitted each time the heartbeat interval elapsestrue
NameSignatureDescription
setActive() => Promise<void>
setInactive() => Promise<void>
NameDescription
alert-bodyThe body to display in the modal
alert-headingThe heading to display in the modal