Lime Web Components API Documentation - v7.4.0
    Preparing search index...

    Interface ProblemStatusAlpha

    Display information for a problem status.

    Since status values are provider-defined, providers must supply display information for their statuses so the platform can render them appropriately.

    import { ProblemProvider, ProblemStatus } from '@limetech/lime-web-components';

    class EmailProblemStatuses
    implements Pick<ProblemProvider, 'getStatus' | 'getStatuses'>
    {
    private statusInfoMap: Record<string, ProblemStatus> = {
    open: {
    id: 'open',
    title: 'Open',
    icon: 'circle',
    },
    'pending-retry': {
    id: 'pending-retry',
    title: 'Pending Retry',
    icon: 'clock',
    },
    resolved: {
    id: 'resolved',
    title: 'Resolved',
    icon: 'check-circle',
    },
    };

    public getStatus(status: string): ProblemStatus | undefined {
    return this.statusInfoMap[status];
    }

    public getStatuses(): ProblemStatus[] {
    return Object.values(this.statusInfoMap);
    }
    }
    interface ProblemStatus {
        icon?: string | Icon;
        id: string;
        title: string;
    }
    Index

    Properties

    Properties

    icon?: string | Icon

    Icon to display for this status.

    Can be either a string referencing an icon name from the platform's icon library, or an Icon object with additional properties like color.

    Icon

    id: string

    The status identifier as used in Problem.status.

    title: string

    Human-readable title for the status.