ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
34 lines (29 loc) • 719 B
text/typescript
import { Component, Input } from '@angular/core';
import { NzDrawerRef } from 'ng-zorro-antd/drawer';
export class DemoDrawerComponent {
record: any;
constructor(private ref: NzDrawerRef) {}
ok(): void {
this.ref.close(`new time: ${+new Date()}`);
this.cancel();
}
cancel(): void {
this.ref.close();
}
}