#967 internal demo for custom editors (demo shell)

This commit is contained in:
Denys Vuika
2016-11-15 16:51:51 +00:00
committed by Mario Romano
parent effedab739
commit de4537f0e4
4 changed files with 35 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
import { NgModule, Component, ElementRef } from '@angular/core';
import { TextFieldWidgetComponent } from 'ng2-activiti-form';
@Component({
selector: 'custom-editor',
template: `
<div style="color: red">Look, I'm a custom editor!</div>
`
})
export class CustomEditorComponent extends TextFieldWidgetComponent {
constructor(elementRef: ElementRef) {
super(elementRef);
}
}
@NgModule({
declarations: [ CustomEditorComponent ],
exports: [ CustomEditorComponent ],
entryComponents: [ CustomEditorComponent ]
})
export class CustomEditorsModule {}