Skip to main content

sdk.progress.showprogresslist

Home > @matterway/sdk > Progress > showProgressList

Progress.showProgressList() function

Shows a list of Progressibles.

Signature:

export declare function showProgressList(context: Context, items: Progressible[], options?: {
title?: string;
description?: string;
overlay?: boolean;
}): Promise<void>;

Parameters

ParameterTypeDescription
contextContextContext options.
itemsProgressible[]List of Progressibles.
options{ title?: string; description?: string; overlay?: boolean; }(Optional) Progress list options.

Returns:

Promise<void>

Example

import {showProgressList} from '@matterway/sdk-progress';

...
await showProgressList(
ctx,
[
{
title: 'Title Progress',
description: 'Example Running Progress',
status: 'running',
},
{
title: 'Title Progress',
description: 'Example Done Progress',
status: 'done',
},
{
title: 'Title Progress',
description: 'Example Pending Progress',
status: 'pending',
},
{
title: 'Title Progress',
description: 'Example Failed Progress',
status: 'failed',
},
],
{
title: 'Title of the Step',
description: 'Description of the Step',
overlay: true,
},
);