How to use the @angular/material/dialog.MatDialogConfig function in @angular/material

To help you get started, we’ve selected a few @angular/material examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Teradata / covalent-nightly / dialogs / services / dialog.service.js View on Github external
TdDialogService.prototype._createConfig = function (config) {
        var dialogConfig = new MatDialogConfig();
        dialogConfig.width = '400px';
        Object.assign(dialogConfig, config);
        return dialogConfig;
    };
    TdDialogService = tslib_1.__decorate([
github skycoin / skywire / static / skywire-manager-src / src / app / components / layout / update / update.component.ts View on Github external
public static openDialog(dialog: MatDialog, nodes: NodeData[]): MatDialogRef {
    const config = new MatDialogConfig();
    config.data = nodes;
    config.autoFocus = false;
    config.width = AppConfig.smallModalWidth;

    return dialog.open(UpdateComponent, config);
  }
github skycoin / skywire / static / skywire-manager-src / src / app / components / vpn / pages / vpn-server-list / add-vpn-server / add-vpn-server.component.ts View on Github external
public static openDialog(dialog: MatDialog, currentLocalPk: string): MatDialogRef {
    const config = new MatDialogConfig();
    config.data = currentLocalPk;
    config.autoFocus = false;
    config.width = AppConfig.mediumModalWidth;

    return dialog.open(AddVpnServerComponent, config);
  }
github skycoin / skycoin-web / src / app / components / pages / wallets / wallet-detail / wallet-detail.component.ts View on Github external
onEditWallet() {
    const dialogConfig = new MatDialogConfig();
    dialogConfig.width = '566px';
    dialogConfig.data = this.wallet;
    dialogConfig.autoFocus = false;
    this.dialog.open(ChangeNameComponent, dialogConfig);
  }
github bdeployteam / bdeploy / ui / webapp / src / app / modules / repositories / components / software-repository / software-repository.component.ts View on Github external
openUploadDialog() {
    const config = new MatDialogConfig();
    config.width = '80%';
    config.height = '60%';
    config.data = {
      title: 'Upload Software Packages',
      headerMessage: 'Upload software packages into this software repository. The selected archive may contain any new software package or a new version of an existing software package.',
      url: this.softwareService.getSoftwareUploadUrl(this.softwareRepositoryName),
      mimeTypes: ['application/x-zip-compressed', 'application/zip'],
      mimeTypeErrorMessage: 'Only ZIP files can be uploaded.'
    };
    this.dialog
      .open(FileUploadComponent, config)
      .afterClosed()
      .subscribe(e => {
        this.loadSoftwares();
      });
  }
github skycoin / skywire / static / skywire-manager-src / src / app / components / pages / node / routing / route-list / route-details / route-details.component.ts View on Github external
public static openDialog(dialog: MatDialog, routeID: string): MatDialogRef {
    const config = new MatDialogConfig();
    config.data = routeID;
    config.autoFocus = false;
    config.width = AppConfig.largeModalWidth;

    return dialog.open(RouteDetailsComponent, config);
  }
github Robinyo / serendipity / projects / serendipity-components / src / lib / services / dialogs / dialog.service.ts View on Github external
private createConfig(config: DialogConfig): MatDialogConfig {

    const dialogConfig: MatDialogConfig = new MatDialogConfig();
    dialogConfig.width = '400px';
    Object.assign(dialogConfig, config);

    return dialogConfig;
  }
github skycoin / skywire / static / skywire-manager-src / src / app / components / pages / node / apps / node-apps / skysocks-settings / skysocks-settings.component.ts View on Github external
public static openDialog(dialog: MatDialog, app: Application): MatDialogRef {
    const config = new MatDialogConfig();
    config.data = app;
    config.autoFocus = false;
    config.width = AppConfig.mediumModalWidth;

    return dialog.open(SkysocksSettingsComponent, config);
  }
github skycoin / skywire / static / skywire-manager-src / src / app / components / vpn / pages / vpn-server-list / enter-vpn-server-password / enter-vpn-server-password.component.ts View on Github external
public static openDialog(dialog: MatDialog, allowEmpty: boolean): MatDialogRef {
    const config = new MatDialogConfig();
    config.data = allowEmpty;
    config.autoFocus = false;
    config.width = AppConfig.mediumModalWidth;

    return dialog.open(EnterVpnServerPasswordComponent, config);
  }
github skycoin / skywire / static / skywire-manager-src / src / app / components / pages / node / actions / basic-terminal / basic-terminal.component.ts View on Github external
public static openDialog(dialog: MatDialog, data: BasicTerminalData): MatDialogRef {
    const config = new MatDialogConfig();
    config.data = data;
    config.autoFocus = false;
    config.width = AppConfig.largeModalWidth;

    return dialog.open(BasicTerminalComponent, config);
  }