Member Junction
    Preparing search index...

    mj-dashboard-name-dialog — asks for the name of a new dashboard before it is created.

    Create stays disabled until the trimmed name has 1 to MaxLength characters. Create, or Enter in the field, emits Confirmed with the trimmed name and leaves the dialog open: the host creates the dashboard, sets Processing meanwhile, and closes the dialog through Visible. Cancel, Esc, the backdrop and the close button emit Cancelled; the host closes the dialog and creates nothing.

    <mj-dashboard-name-dialog
    [Visible]="ShowNewDashboardDialog"
    [MaxLength]="NewDashboardNameMaxLength"
    [Processing]="IsCreatingDashboard"
    (Confirmed)="OnNewDashboardNamed($event)"
    (Cancelled)="OnNewDashboardCancelled()">
    </mj-dashboard-name-dialog>
    Index

    Constructors

    Properties

    Cancelled: EventEmitter<void> = ...

    The user cancelled: Cancel, Esc, the backdrop or the close button.

    Confirmed: EventEmitter<string> = ...

    The trimmed name, when the user clicks Create or presses Enter. The dialog stays open.

    ConfirmText: string = 'Create'

    The label of the confirm button.

    MaxLength: number = DASHBOARD_NAME_MAX_LENGTH

    The longest name accepted: the MaxLength of MJ: Dashboards.Name.

    Name: string = ''

    The name in the field.

    Placeholder: string = 'Name this dashboard'

    The placeholder of the name field.

    Processing: boolean = false

    True while the host creates the dashboard: Create shows a spinner, and the dialog cannot be changed or closed.

    Title: string = 'New dashboard'

    The dialog title.

    Accessors

    Methods