How to use the @delon/util.copy function in @delon/util

To help you get started, we’ve selected a few @delon/util 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 dotnetcore / Util / sample / Util.Samples.Angular.AntDesign / Typings / app / home / layout / default / setting-drawer / setting-drawer.component.ts View on Github external
copyVar() {
    const vars = this.genVars();
    const copyContent = Object.keys(vars)
      .map(key => `${key}: ${vars[key]};`)
      .join('\n');
    copy(copyContent);
    this.msg.success('Copy success');
  }
}
github ng-alain / delon / src / app / shared / components / code-box / code-box.component.ts View on Github external
onCopy(value: string) {
    copy(value).then(() => {
      this.msg.success(this.i18n.fanyi('app.demo.copied'));
      this.copied = true;
      setTimeout(() => (this.copied = false), 1000);
    });
  }
github ng-alain / delon / src / app / shared / components / footer / footer.component.ts View on Github external
onCopy(value: string) {
    copy(value).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
  }
github ng-alain / delon / src / app / layout / footer / footer.component.ts View on Github external
onCopy(value: string) {
    copy(value).then(() =>
      this.msg.success(this.i18n.fanyi('app.demo.copied')),
    );
  }
}
github dotnetcore / OSharp / samples / web / ui-clients / ng-alain8 / src / app / layout / default / setting-drawer / setting-drawer.component.ts View on Github external
copyVar() {
    const vars = this.genVars();
    const copyContent = Object.keys(vars)
      .map(key => `${key}: ${vars[key]};`)
      .join('\n');
    copy(copyContent);
    this.msg.success('Copy success');
  }
}
github ng-alain / delon / site / app / layout / header / header.component.ts View on Github external
onCopy(value: string) {
    copy(value).then(() =>
      this.msg.success(this.i18n.fanyi('app.demo.copied')),
    );
  }
github ng-alain / delon / src / app / routes / form-pages / validator / validator.component.ts View on Github external
onCopy() {
    copy(this.schema).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
  }
github ng-alain / delon / src / app / layout / header / header.component.ts View on Github external
onCopy(value: string) {
    copy(value).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
  }
github ng-alain / delon / site / app / layout / footer / footer.component.ts View on Github external
onCopy(value: string) {
        copy(value).then(() => this.msg.success(this.i18n.fanyi('app.demo.copied')));
    }
github ng-alain / delon / site / app / routes / form-pages / validator / validator.component.ts View on Github external
onCopy() {
    copy(this.schema).then(() =>
      this.msg.success(this.i18n.fanyi('app.demo.copied')),
    );
  }