Hierarchy

  • any
    • PartyRestConfig

Constructors

Properties

restConfig: any
DEFAULT_OPTIONS: {
    actions: {
        rest: ((event: Event, el: Element) => Promise<void>);
        toggle: ((event: Event, el: Element) => void);
    };
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: ((event: Event, form: Element, formData: FormDataExtended) => void);
        submitOnChange: boolean;
    };
    position: {
        width: number;
    };
    tag: string;
    window: {
        minimizable: boolean;
        resizable: boolean;
        title: string;
    };
} = ...

Type declaration

  • actions: {
        rest: ((event: Event, el: Element) => Promise<void>);
        toggle: ((event: Event, el: Element) => void);
    }
    • rest: ((event: Event, el: Element) => Promise<void>)
        • (event, el): Promise<void>
        • Rest button handler

          Parameters

          • event: Event
          • el: Element

          Returns Promise<void>

    • toggle: ((event: Event, el: Element) => void)
        • (event, el): void
        • Toggle rest category for all participants.

          Parameters

          • event: Event
          • el: Element

          Returns void

  • classes: string[]
  • form: {
        closeOnSubmit: boolean;
        handler: ((event: Event, form: Element, formData: FormDataExtended) => void);
        submitOnChange: boolean;
    }
    • closeOnSubmit: boolean
    • handler: ((event: Event, form: Element, formData: FormDataExtended) => void)
        • (event, form, formData): void
        • Parameters

          • event: Event
          • form: Element
          • formData: FormDataExtended

          Returns void

    • submitOnChange: boolean
  • position: {
        width: number;
    }
    • width: number
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
        title: string;
    }
    • minimizable: boolean
    • resizable: boolean
    • title: string
PARTS: {
    footer: {
        template: string;
    };
    form: {
        template: string;
    };
} = ...

Accessors

Methods

  • Parameters

    • config: any
    • updateTime: boolean = true

    Returns void

  • Rest button handler

    Parameters

    • event: Event
    • el: Element

    Returns Promise<void>

  • Parameters

    • event: Event
    • form: Element
    • formData: FormDataExtended

    Returns void

  • Toggle rest category for all participants.

    Parameters

    • event: Event
    • el: Element

    Returns void

  • Internal

    Perform rest on each individual actor

    Parameters

    • config: any

    Returns Promise<undefined | false>

  • Parameters

    • __namedParameters: {
          actors: undefined | never[];
          longTermCare: undefined | boolean;
          restOptions: undefined | {};
          restoreHealth: undefined | boolean;
          restoreUses: undefined | boolean;
          watches: undefined | string;
      } = {}
      • actors: undefined | never[]
      • longTermCare: undefined | boolean
      • restOptions: undefined | {}
      • restoreHealth: undefined | boolean
      • restoreUses: undefined | boolean
      • watches: undefined | string

    Returns Promise<{
        actors: any[];
        hours: any;
        longTermCare: boolean;
        restOptions: {};
        restoreHealth: boolean;
        restoreUses: boolean;
        watches: string;
    }>