ngx-edu-components
Version:
Set of extra angular material components.
48 lines (45 loc) • 1.53 kB
TypeScript
import { NgxEduCropperResponse } from '../ngx-edu-cropper/ngx-edu-cropper-response';
import { MatDialogRef } from '@angular/material';
/**
* INSTRUCCIONES DE USO
*
* Importar en módulo ImageToolsModule en tu módulo
*
* EXAMPLE
*
* <div #imageCanvas></div>
*
* @ViewChild('imageCanvas') public imageCanvas: ElementRef;
confirmDialogRef: any;
openCropperDialog() {
const config: MatDialogConfig = {
width: '50%',
disableClose: true,
panelClass: 'ea-dialog',
data: {
imageUrl: 'assets/images/default/company.jpg'
}
};
this.confirmDialogRef = this.dialog.open(NgxEduCropperDialogComponent, config);
this.confirmDialogRef.afterClosed().subscribe((result: NgxEduCropperResponse | boolean) => {
if (!result) return;
this.imageCanvas.nativeElement.appendChild((<NgxEduCropperResponse>result).canvas);
});
}
*/
export declare class NgxEduCropperDialogComponent {
data: any;
_dialogRef: MatDialogRef<NgxEduCropperDialogComponent>;
imageUrl: string;
title: string;
accept: string;
cancel: string;
close: string;
ngxEduCropperResponse: NgxEduCropperResponse;
constructor(data: any, _dialogRef: MatDialogRef<NgxEduCropperDialogComponent>);
ngOnInit(): void;
ngOnChanges(): void;
ngOnDestroy(): void;
onChange(ngxEduCropperResponse: NgxEduCropperResponse): void;
save(): void;
}