blessed-components - v1.20.0
    Preparing search index...

    Interface RadioGroupData<TItem>

    Stateful data accepted by the Blessed radioGroup adapter.

    interface RadioGroupData<TItem extends RadioGroupItem = RadioGroupItem> {
        activeId?: string;
        characters?: RadioGroupCharacters;
        defaultValue?: string;
        emptyText?: string;
        items: readonly TItem[];
        onActiveIdChange?: (activeId: string) => void;
        onValueChange?: (value: string) => void;
        value?: string;
    }

    Type Parameters

    Index

    Properties

    activeId?: string

    Preferred initial cursor identifier.

    Character tokens used by the pure renderer.

    defaultValue?: string

    Initial selection for uncontrolled usage. Ignored when value is supplied.

    emptyText?: string

    Text displayed when no options exist.

    items: readonly TItem[]

    Ordered options. Disabled options are visible but not interactive.

    onActiveIdChange?: (activeId: string) => void

    Called after the cursor moves to a different enabled option.

    onValueChange?: (value: string) => void

    Called when selection changes or a controlled selection is requested.

    value?: string

    Controlled selected option identifier.