interface ApplicationConfiguration {
    id: string;
    uniqueId: string;
    classes: string[];
    tag: string;
    window: ApplicationWindowConfiguration;
    actions: Record<string, ApplicationClickAction | {
        handler: ApplicationClickAction;
        buttons: number[];
    }>;
    form: ApplicationFormConfiguration;
    position: Partial<ApplicationPosition>;
}

Properties

id: string

An HTML element identifier used for this Application instance

uniqueId: string

An string discriminator substituted for {id} in the default HTML element identifier for the class

classes: string[]

An array of CSS classes to apply to the Application

tag: string

The HTMLElement tag type used for the outer Application frame

Configuration of the window behaviors for this Application

actions: Record<string, ApplicationClickAction | {
    handler: ApplicationClickAction;
    buttons: number[];
}>

Click actions supported by the Application and their event handler functions. A handler function can be defined directly which only responds to left-click events. Otherwise, an object can be declared containing both a handler function and an array of buttons which are matched against the PointerEvent#button property.

Configuration used if the application top-level element is a form or dialog

position: Partial<ApplicationPosition>

Default positioning data for the application