@nospamproxy/core
    Preparing search index...

    A dialog with multiple steps.

    The <tabzard> custom element is a replacement for the <generic-dialog> custom element. The GenericDialogController and GenericDialogService can be used to open and close tabzards. Basic Tabzard example:

    // example.ts
    export class Example {
    public mode: string = 'edit';
    private loadModel = async (model): Promise<void> => {
    // Load some data.
    }

    private finish = async (): Promise<string> => {
    return "foo";
    }
    }
    <!-- example.html -->
    <tabzard-dialog load-model.bind finish.bind width="35rem" height="40rem" mode.bind="mode">
    <normal-text au-slot="header" value="Main Header"></normal-text>
    <tabzard-step header="Foo" validation-controller.bind="validationControllerStep1">
    <normal-text value="Foo content"></normal-text>
    <validated-control controller.bind="validationControllerStep1">
    <checkbox-control selected.two-way="failValidation.booleanP1 & validate:'changeOrFocusout':validationControllerStep1">
    </checkbox-control>
    </validated-control>
    </tabzard-step>
    <tabzard-step header="Bar" validation-controller.bind="validationControllerStep2">
    <normal-text value="Bar content"></normal-text>
    <validated-control controller.bind="validationControllerStep2">
    <checkbox-control selected.two-way="failValidation.booleanP2 & validate:'changeOrFocusout':validationControllerStep2">
    </checkbox-control>
    </validated-control>
    </tabzard-step>
    </tabzard-dialog>
    Index

    Constructors

    Properties

    activity: ActivityManager = ...
    availableSteps: TabzardStep[] = []

    All steps in order including only available steps.

    controller: IGenericDialogController<Constructable, unknown, unknown> = ...
    currentStepIndex: number = 0

    The current step index (in the array of all steps, not available steps)

    finish: () => unknown

    The finish action.

    If an error occurs, the dialog will not be closed and the current activity manager's default error handling is used.

    Type Declaration

      • (): unknown
      • Returns unknown

        The value that will be returned as the dialog result or Tabzard.CANCEL_FINISH to cancel finishing/saving and leave the tabzard open without showing any errors automatically.

    finishButtonText?: string

    Optional custom text for the finish button in create mode. If not provided, defaults to "Finish" (localized).

    height: string = 'auto'

    The dialog height. See GenericDialog for more info.

    helpLink: string | null | undefined

    Forwarded to the dialog.

    loadModel?: (model: unknown) => void | Promise<void>

    The loadModel action.

    The first parameter is the model passed to the generic dialog service.

    All tabzard steps will show a spinner while loading.

    If an error occurs, the dialog will be closed immediately and the current activity manager's default error handling is used.

    mode: TabzardMode = TabzardMode.Create

    The tabzard mode.

    steps: TabzardStep[] = []
    width: string = 'auto'

    The dialog width. See GenericDialog for more info.

    CANCEL_FINISH: typeof CANCEL_FINISH = ...

    Accessors

    • get isLoading(): boolean
      Internal

      Returns boolean

    Methods

    • Returns void

    • Internal

      Returns void

    • Parameters

      • node: HTMLElement

      Returns void