mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-20 23:28:11 +00:00
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';
|
|
import { MD_DIALOG_DATA, MdDialogRef } from '@angular/material';
|
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
|
|
@Component({
|
|
selector : 'fuse-mail-compose',
|
|
templateUrl : './compose.component.html',
|
|
styleUrls : ['./compose.component.scss'],
|
|
encapsulation: ViewEncapsulation.None
|
|
})
|
|
export class FuseMailComposeDialogComponent implements OnInit
|
|
{
|
|
composeForm: FormGroup;
|
|
|
|
constructor(
|
|
public dialogRef: MdDialogRef<FuseMailComposeDialogComponent>,
|
|
@Inject(MD_DIALOG_DATA) private data: any
|
|
)
|
|
{
|
|
this.composeForm = this.createComposeForm();
|
|
}
|
|
|
|
ngOnInit()
|
|
{
|
|
}
|
|
|
|
createComposeForm()
|
|
{
|
|
return new FormGroup({
|
|
from : new FormControl({
|
|
value : 'johndoe@creapond.com',
|
|
disabled: true
|
|
}),
|
|
to : new FormControl(''),
|
|
cc : new FormControl(''),
|
|
bcc : new FormControl(''),
|
|
subject: new FormControl(''),
|
|
message: new FormControl('')
|
|
});
|
|
}
|
|
|
|
}
|