Skip to content

Function: progressList()

ts
function progressList(ctx: Context, options: ProgressListOptions): RenderSession;

Defined in: src/renderer/templates/progressList.ts:43

Displays a progress list showing multiple operation statuses.

Shows bubble with progress items (done, failed, in-progress). Fire-and-forget: returns a RenderSession the caller can await session.cleanup() on once the work is done.

Parameters

ParameterTypeDescription
ctxContextThe context to render to.
optionsProgressListOptionsConfiguration for the bubble.

Returns

RenderSession

Example

ts
import {progressList} from '@matterway/sdk/UI';

const session = progressList(ctx, {
  title: 'Loading Data',
  description: 'Please wait while we load the data',
  items: [
    { label: 'Data fetched successfully.', value: 'done' },
    { label: 'Data sorting', value: 'failed' },
    { label: 'Data filtering', value: 'in-progress' },
  ],
});
// ...do work...
await session.cleanup();

Matterway Assistant SDK Documentation