pamoja for TypeScript - v0.2.0
    Preparing search index...

    Interface ElementSpec

    A custom sensor or node stat a profile contributes to the dashboard.

    interface ElementSpec {
        band?: number[];
        key: string;
        label: string;
        labels?: Record<string, string>;
        scope?: string[];
        span?: boolean;
        stat?: boolean;
        state?: string;
        unit: string;
        value?: number;
        viz: Viz;
    }
    Index
    band?: number[]

    The safe band as [low, high] in the element's unit.

    key: string

    The stable, language-neutral element key, such as water_turbidity.

    label: string

    A human-readable fallback label, shown when no localized label applies.

    labels?: Record<string, string>

    Per-locale labels, keyed by locale tag (en, sw, ...).

    scope?: string[]

    The link kinds whose groups this element is offered on, such as ["mesh"]; absent means every group.

    span?: boolean

    Whether the element's tile spans two columns.

    stat?: boolean

    Whether this is a node or network stat rather than a measurement of the world.

    state?: string

    A starting discrete state code, such as state.closed, for a non-numeric element.

    unit: string

    The canonical unit name, such as ntu, ph, or count.

    value?: number

    A starting numeric value for the add-sensor dialog.

    viz: Viz

    The graphic this element is drawn with.