Skip to content
Okaapiأوكابي
Framework for the code
Theme
Okaapi on GitHub

Chapter 11 Data

Timeline

A chronological record of decisions and updates. Each event can show who acted, when it happened, and the outcome, so a case's approval history is easy to scan.

Use it in Angular
import { TimelineComponent } from '@okaapi-ui/angular';

Case approval history

A manager approved the request, finance is reviewing it, and the owner is notified once the final decision is made.

  1. Request submitted

    Ibrahim Mohamed

    Travel expense reimbursement for the Cairo client visit.

  2. Manager approval

    Approved

    Mohamed Hatem

    Approved within the department travel budget.

  3. Finance review

    Pending

    Finance team

Angular
<ui-timeline label="Approval history for case 1042" [items]="approvals" />

approvals = [
  { title: 'Request submitted', actor: 'Ibrahim Mohamed', date: '18 Nov 2026, 09:14' },
  { title: 'Manager approval', actor: 'Mohamed Hatem', date: '18 Nov 2026, 11:42',
    status: 'approved', description: 'Approved within the department travel budget.' },
  { title: 'Finance review', actor: 'Finance team', date: 'In progress', status: 'pending' },
];

In Arabic

  1. تم تقديم الطلب

    إبراهيم محمد

  2. موافقة المدير

    تمت الموافقة

    محمد حاتم

  3. مراجعة الشؤون المالية

    قيد الانتظار

    الفريق المالي

Angular
<ui-timeline label="سجل الموافقات" [items]="arabicApprovals" />

{ title: 'موافقة المدير', date: '١٨ نوفمبر ٢٠٢٦، ١١:٤٢',
  status: 'approved', statusLabel: 'تمت الموافقة' }

When to use something else

If you needUse
Steps still to doStepper
Many records to sort and filterData table

Inputs

NameTypeDefaultWhat it does
labelstring — Required. Names the ordered history list.
itemsTimelineItem[] — Required. Events in chronological order.
TimelineItem{ title, date, dateTime?, actor?, description?, status?, statusLabel? } — Event details. dateTime is a machine-readable value for the semantic time element.
status'approved' | 'pending' | 'rejected' — Adds a status icon and tone label to the event.
statusLabelstring — Overrides the default status text, including for translation.

Keyboard and screen readers

  • An ordered list, so screen readers say how many events there are; each date is a time element.