Member Junction
    Preparing search index...

    This dialog will display the form for a given entity. Using the configuration settings you can display the entire form or a specific section of the form. You can also control the visibility of the Save and Cancel buttons, and the behavior of the Save and Cancel buttons.

    Index

    Constructors

    Properties

    AutoRevertOnCancel: boolean = true

    If true, when the user clicks the Cancel button, the Record will be reverted to its original state. Only applicable if ShowCancelButton is true.

    container: ViewContainerRef
    DialogClosed: EventEmitter<"Save" | "Cancel"> = ...

    This event will be emitted when the dialog is closed. The event will contain the status of the dialog, which will be either 'Save' or 'Cancel'.

    HandleSave: boolean = true

    If true, when the user clicks the Save button, the Record will be saved. Only applicable if ShowSaveButton is true.

    Height: number = 600

    Initial height of the dialog

    Mode: "complete" | "section" = 'complete'

    When set to complete, the entire form will be displayed. When set to section, only the specified section of the form will be displayed that is specified in the SectionName property.

    Record: BaseEntity<unknown> | null = null

    The record to display in the form. This property is required. The record must be an instance a BaseEntity derived class.

    SectionName: string = ''

    If Mode is set to section, this property will specify the name of the section to display. This property is ignored if Mode is set to complete.

    ShowCancelButton: boolean = true

    If set to true the Cancel button will be displayed. If set to false, the Cancel button will be hidden.

    ShowSaveButton: boolean = true

    If set to true the Save button will be displayed. If set to false, the Save button will be hidden.

    Title: string = ''

    The title of the dialog

    Width: number = 800

    Initial width of the dialog

    Accessors

    Methods

    • This method can be called to close the dialog. It will emit the 'close' event with the status of the dialog.

      Parameters

      • status: "Save" | "Cancel"

      Returns Promise<void>