diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts index ba84820db7..62c1e1f039 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts @@ -31,7 +31,7 @@ import { } from 'ng2-alfresco-datatable'; import { FormRenderingService } from 'ng2-activiti-form'; -import { CustomEditorComponent } from './custom-editor/custom-editor.component'; +import { /*CustomEditorComponent*/ CustomStencil01 } from './custom-editor/custom-editor.component'; declare let __moduleName: string; declare var componentHandler; @@ -111,6 +111,9 @@ export class ActivitiDemoComponent implements AfterViewChecked { // Uncomment this line to replace all 'text' field editors with custom component // formRenderingService.setComponentTypeResolver('text', () => CustomEditorComponent, true); + + // Uncomment this line to map 'custom_stencil_01' to local editor component + formRenderingService.setComponentTypeResolver('custom_stencil_01', () => CustomStencil01, true); } ngOnInit() { diff --git a/demo-shell-ng2/app/components/activiti/custom-editor/custom-editor.component.ts b/demo-shell-ng2/app/components/activiti/custom-editor/custom-editor.component.ts index 549df2da29..b71a11ae3c 100644 --- a/demo-shell-ng2/app/components/activiti/custom-editor/custom-editor.component.ts +++ b/demo-shell-ng2/app/components/activiti/custom-editor/custom-editor.component.ts @@ -1,5 +1,5 @@ -import { NgModule, Component, ElementRef } from '@angular/core'; -import { TextFieldWidgetComponent } from 'ng2-activiti-form'; +import { NgModule, Component } from '@angular/core'; +import { WidgetComponent } from 'ng2-activiti-form'; @Component({ selector: 'custom-editor', @@ -7,17 +7,17 @@ import { TextFieldWidgetComponent } from 'ng2-activiti-form';