Axinom Mosaic Libraries
    Preparing search index...

    Interface StatusViewFieldProps<T>

    interface StatusViewFieldProps<T extends string = string> {
        className?: string;
        dataTestFieldType?: string;
        fallback?: StatusDefinition;
        hideIfEmpty?: boolean;
        id?: string;
        inlineMode?: boolean;
        label?: string;
        statuses?: Partial<Record<T, StatusDefinition>>;
        tooltipContent?: ReactNode;
        value?: T | null;
    }

    Type Parameters

    • T extends string = string

    Hierarchy (View Summary)

    Index

    Properties

    className?: string

    CSS Class name for additional styles

    dataTestFieldType?: string

    Identifier for E2E testing to identify the form element type (default: StatusView). Fields which specialize this one set their own, so that their existing selectors keep working.

    fallback?: StatusDefinition

    Used for values which are not part of the status map

    hideIfEmpty?: boolean

    Sets whether the field should not be visible if there is no status to show (default: false)

    id?: string

    Form control id

    inlineMode?: boolean

    Hide options not needed in the “inline” scenario

    label?: string

    Form control label

    statuses?: Partial<Record<T, StatusDefinition>>

    Maps each value of an enum (or plain string) to the way it is displayed

    tooltipContent?: ReactNode

    A tooltip of additional information

    value?: T | null

    Value to be displayed