Hierarchy

  • any
    • PartyRestConfig

Constructors

Properties

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

Type declaration

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

          Parameters

          • event: Event
          • el: Element

          Returns Promise<void>

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

          Parameters

          • event: Event
          • el: Element

          Returns void

  • classes: string[]
  • form: {
        closeOnSubmit: boolean;
        handler: ((event, form, formData) => void);
        submitOnChange: boolean;
    }
    • closeOnSubmit: boolean
    • handler: ((event, form, formData) => 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;
    };
} = ...

Type declaration

  • footer: {
        template: string;
    }
    • template: string
  • form: {
        template: string;
    }
    • 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 | any[];
          hours: any;
          longTermCare: undefined | boolean;
          restOptions: undefined | {};
          restoreHealth: undefined | boolean;
          restoreUses: undefined | boolean;
          watches: undefined | string;
      } = {}
      • actors: undefined | any[]
      • hours: any
      • 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;
    }>

Generated using TypeDoc