@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface PaletteLeadOptions

    What the palette's lead row shows (Palette.lead). Texts are English source text or a Text, translated like command titles.

    1.7.9

    interface PaletteLeadOptions {
        title: string | Text;
        icon: ImageRef | BarButtonIcon;
        placeholder?: string | Text;
        empty?: string | Text;
        note?: string | Text;
        status?:
            | {
                text: string
                | Text;
                note?: string | Text;
                strip?: string | Text;
                state?: "failed" | "stopped" | "working" | "done" | "note";
            }
            | null;
    }
    Index
    title: string | Text

    The row reads title: <typed text>, or title alone with nothing typed (1–40 characters).

    A name of the player's icon set (BarButtonIcon) or an image from Ui.image.

    placeholder?: string | Text

    The search field's placeholder (up to 60 characters).

    empty?: string | Text

    Dimmed after title while nothing is typed (up to 80 characters).

    note?: string | Text

    On the right of the row ("Set up a model first"; up to 40 characters).

    status?:
        | {
            text: string
            | Text;
            note?: string | Text;
            strip?: string | Text;
            state?: "failed" | "stopped" | "working" | "done" | "note";
        }
        | null

    Replaces the row while nothing is typed (a running request; the cursor starts on it); null or absent: none. Its run event has status: true. While the palette is closed the player shows it in a status strip at the top of the main window, as its state says.

    Type Declaration

    • {
          text: string | Text;
          note?: string | Text;
          strip?: string | Text;
          state?: "failed" | "stopped" | "working" | "done" | "note";
      }
      • text: string | Text

        The status text, on one line: up to 80 characters while working; up to 160 for an end state, which the strip shows on up to two lines (since 1.8.0; 80 before).

      • Optionalnote?: string | Text

        On the right of the row (up to 40 characters).

      • Optionalstrip?: string | Text

        What the status strip shows instead of text while working (1–80 characters on one line), for a row that says more than the strip needs: the row reads "Vestra is working · Planning…", the strip "Planning…". Absent: the strip shows text. Only for a working status: an end state is shown in the strip alone, so its text is the strip's, and strip with one is invalid. Like a working text, it does not change the strip once Commands.run has shown a step of the ticket there.

        Sent only when set: players before it refuse the field (invalid, through ready, or update rejects).

        1.8.0

      • Optionalstate?: "failed" | "stopped" | "working" | "done" | "note"

        Still working or ended. Absent: "working".

        • "working": the work goes on. The strip shows the text with a moving line and a Stop button (Stop is Enter on the status row) and stays until the status changes or is removed.
        • "done", "failed", "note", "stopped": an end state (finished; failed; a sentence for the user, such as an answer; the user stopped the work). The player shows it with a check, in the danger colour, plain, or plain with its icon dimmed, then removes it by itself after a few seconds (about 2 s, 6 s, 4–10 s by length, and 2 s; longer while the pointer is on it). "stopped" (since 1.8.0) says that nothing came of the request, which "note" cannot: use it for the text shown after Stop. It is shown once: not kept, not shown again later (when the plugin is stopped or woken), and the row goes back to its usual form. The plugin needs no timer of its own and may call PaletteLead.done right after setting it.

        Once Commands.run has shown a step of the ticket in the strip, a "working" text changes only the palette's status row, until an end state, status: null or the end of the ticket.

        Players before the status strip refuse the field (invalid), and players before SDK 1.8.0's refuse "stopped"; a built-in plugin ships with its player. Any other value: invalid (through ready, or update rejects).

        1.7.15

    • null