Configuration Filter Widget

The widget’s configuration schema is defined in src/index.ts. Below are the available options, their purpose, and defaults.

Options

  • Instance ID:

    • Key: instanceId

    • Type: string

    • Purpose: Namespaces localStorage for per-instance filter history.

    • Default: undefined (falls back to 'default' at runtime)

  • Remember history:

    • Key: rememberHistory

    • Type: boolean

    • Purpose: Persist applied expressions to localStorage.

    • Default: true

  • Max history items:

    • Key: maxHistory

    • Type: number

    • Purpose: Cap on stored history items per instanceId.

    • Default: 20

  • Input placeholder:

    • Key: placeholder

    • Type: string

    • Purpose: Placeholder text in the input.

    • Default: "Type brush expression…"

Notes

  • Suggestions combine derived station name hints and local history.

  • History storage key: filterHistory:${instanceId || 'default'}.