@termun/core - v0.0.0
    Preparing search index...

    Class MenuInputLabels

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns the placeholder label, or undefined if not set.

      Returns Label | undefined

    • Sets the placeholder label from a Label instance or a translation key string.

      Parameters

      • placeholder: Label

        Label instance or translation key.

      Returns this

    • Sets the placeholder label from a Label instance or a translation key string.

      Parameters

      • placeholder: string

        Label instance or translation key.

      • Optionalcallback: (
            value: string | undefined,
            translate: (value: string) => string | undefined,
        ) => string

        Optional interpolation callback forwarded to the Label.

      Returns this

    • Returns the answer label. When a name suffix is provided, a new Label is derived by appending .name to the base key.

      Parameters

      • Optionalname: string

        Optional suffix appended to the label's translation key.

      Returns Label | undefined

    • Sets the answer label from a Label instance or a translation key string.

      Parameters

      • answer: Label

        Label instance or translation key.

      Returns this

    • Sets the answer label from a Label instance or a translation key string.

      Parameters

      • answer: string

        Label instance or translation key.

      • Optionalcallback: (
            value: string | undefined,
            translate: (value: string) => string | undefined,
        ) => string

        Optional interpolation callback forwarded to the Label.

      Returns this

    • Returns the question label, or undefined if not set.

      Returns Label | undefined

    • Sets the question label from a Label instance or a translation key string.

      Parameters

      • question: Label

        Label instance or translation key.

      Returns this

    • Sets the question label from a Label instance or a translation key string.

      Parameters

      • question: string

        Label instance or translation key.

      • Optionalcallback: (
            value: string | undefined,
            translate: (value: string) => string | undefined,
        ) => string

        Optional interpolation callback forwarded to the Label.

      Returns this

    • Returns the title label, or undefined if not set.

      Returns Label | undefined

    • Sets the title label from a Label instance or a translation key string.

      Parameters

      • title: Label

        Label instance or translation key.

      Returns this

    • Sets the title label from a Label instance or a translation key string.

      Parameters

      • title: string

        Label instance or translation key.

      • Optionalcallback: (
            value: string | undefined,
            translate: (value: string) => string | undefined,
        ) => string

        Optional interpolation callback forwarded to the Label.

      Returns this

    • Returns the success label, or undefined if not set.

      Returns Label | undefined

    • Sets the success label from a Label instance or a translation key string.

      Parameters

      • success: Label

        Label instance or translation key.

      Returns this

    • Sets the success label from a Label instance or a translation key string.

      Parameters

      • success: string

        Label instance or translation key.

      • Optionalcallback: (
            value: string | undefined,
            translate: (value: string) => string | undefined,
        ) => string

        Optional interpolation callback forwarded to the Label.

      Returns this

    • Returns the error label, or undefined if not set.

      Returns Label | undefined

    • Sets the error label from a Label instance or a translation key string.

      Parameters

      • error: Label

        Label instance or translation key.

      Returns this

    • Sets the error label from a Label instance or a translation key string.

      Parameters

      • error: string

        Label instance or translation key.

      • Optionalcallback: (
            value: string | undefined,
            translate: (value: string) => string | undefined,
        ) => string

        Optional interpolation callback forwarded to the Label.

      Returns this

    Properties

    placeholder?: Label
    answer?: Label
    question?: Label
    title?: Label
    success?: Label
    error?: Label