You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Wizarding Addon is responsible for displaying wizards in OpenSCD.


The Wizarding Addon listens to the oscd-wizard  CustomEvent.

The oscd-wizard  events contains the OscdWizard  reference.


oscd-wizard
export interface OscdWizardEventDetail {
    wizard: OscdWizard;
}

export interface OscdWizardEvent extends Event {
    detail: OscdWizardEventDetail;
}


The OscdWizard  must be an HTMLElement that contains the open()  and close() functions.

The OscdWizard can be viewed below


OscdWizard
export type OscdWizard = HTMLElement & { open(): Promise<void>, close(): Promise<void> }


  • No labels