Tidy 5e Sheets API
    Preparing search index...

    Type Alias ItemDescriptionConfig

    A custom item description.

    type ItemDescriptionConfig = {
        editable?: (item: Item5e) => boolean;
        field: string;
        id: string;
        itemTypes?: string[];
        label: string;
        onChange?: (item: Item5e, description: string) => Promise<any>;
        visible?: (item: Item5e) => boolean;
    }
    Index
    editable?: (item: Item5e) => boolean

    A callback to determine if the description is editable by the current user.

    Type Declaration

      • (item: Item5e): boolean
      • Parameters

        • item: Item5e

        Returns boolean

        true for editable, false for read-only

    field: string

    Optional property path for where to save the data. Typically, this is a flag path, like flags.my-example.curse-description.

    id: string

    A unique ID for this description.

    itemTypes?: string[]

    The item types which should show this description. Excluding this property indicates item types.

    label: string

    The title of the description.

    onChange?: (item: Item5e, description: string) => Promise<any>

    Optional callback to allow handling a change to the description value. If a property path is not available, or saving changes requires more work, use this callback.

    visible?: (item: Item5e) => boolean

    A callback to determine whether the description should be visible, based on the item document.

    Type Declaration

      • (item: Item5e): boolean
      • Parameters

        • item: Item5e

        Returns boolean

        true for editable, false for read-only