Member Junction
    Preparing search index...

    Edits one default (a dashboard property's, or a part input mapping's): none, a fixed value of the given type, or a context token with an optional offset for date tokens. Every change emits a new default (undefined for none) through DefaultChange, so [(Default)] works.

    Index

    Constructors

    Properties

    Default: PropertyDefault | undefined = undefined

    The default being edited; undefined for none.

    DefaultChange: EventEmitter<PropertyDefault | undefined> = ...
    Disabled: boolean = false
    Label: string = 'Default'

    The accessible name of the controls.

    NoneLabel: string = 'No default'

    The text of the "no default" choice.

    OffsetUnits: readonly ["day", "week", "month", "quarter", "year"] = PROPERTY_OFFSET_UNITS
    Tokens: readonly [
        "Context.UserID",
        "Context.UserEmail",
        "Context.UserName",
        "Context.Now",
        "Context.Today",
        "Context.StartOfWeek",
        "Context.StartOfMonth",
        "Context.StartOfQuarter",
        "Context.StartOfYear",
    ] = CONTEXT_TOKENS
    Type: "string" | "number" | "boolean" | "date" | "uuid" = 'string'

    The type a fixed value takes.

    Accessors

    Methods

    • A user token takes no offset, so choosing one drops it.

      Parameters

      • token:
            | "Context.UserID"
            | "Context.UserEmail"
            | "Context.UserName"
            | "Context.Now"
            | "Context.Today"
            | "Context.StartOfWeek"
            | "Context.StartOfMonth"
            | "Context.StartOfQuarter"
            | "Context.StartOfYear"

      Returns void