src/app/navigation/action/action.component.ts
selector | app-action |
styleUrls | ./action.component.scss |
templateUrl | ./action.component.html |
Properties |
Methods |
constructor(service, data: any, fb: FormBuilder)
|
||||||||||||
Parameters :
|
createForm |
createForm()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
onSubmit |
onSubmit()
|
Returns :
void
|
onValueChanged | ||||||
onValueChanged(data?: any)
|
||||||
Parameters :
Returns :
void
|
actionFrom |
Type : FormGroup
|
Public data |
Type : any
|
Decorators :
@Inject(MAT_DIALOG_DATA)
|
formErrors |
Type : object
|
Default value : {
title: '',
url: '',
description: '',
image_url: ''
}
|
validationMessages |
Type : object
|
Default value : {
title: {
required: ''
},
url: {
required: '',
url: '请输入正确的链接'
},
description: {
required: ''
},
image_url: {
required: ''
}
}
|
./action.component.scss