mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1549] Moved docassets folder inside docs folder (#2367)
This commit is contained in:
committed by
Eugenio Romano
parent
a9eff7fbaf
commit
7f3a4fc513
@@ -91,7 +91,7 @@ rendered within `<activiti-form>` component.
|
||||
|
||||
First let's create a simple Alfresco Activiti form with `Text` widgets:
|
||||
|
||||

|
||||

|
||||
|
||||
Every custom widget must inherit `WidgetComponent` class in order to function properly:
|
||||
|
||||
@@ -158,7 +158,7 @@ export class MyView {
|
||||
|
||||
At runtime it should look similar to the following:
|
||||
|
||||

|
||||

|
||||
|
||||
## Replacing custom stencils with custom components
|
||||
|
||||
@@ -168,7 +168,7 @@ This is a short walkthrough on rendering custom Alfresco Activiti stencils by me
|
||||
|
||||
First let's create a basic stencil and call it `Custom Stencil 01`:
|
||||
|
||||

|
||||

|
||||
|
||||
_Note the `internal identifier` value as it will become a `field type` value when corresponding form is rendered._
|
||||
|
||||
@@ -180,17 +180,17 @@ Next put some simple html layout for `Form runtime template` and `Form editor te
|
||||
|
||||
Now you are ready to design a test form based on your custom stencil:
|
||||
|
||||

|
||||

|
||||
|
||||
Once wired with a new task it should look like the following within Alfresco Activiti web application:
|
||||
|
||||

|
||||

|
||||
|
||||
### Creating custom widget
|
||||
|
||||
If you load previously created task into ADF `<activiti-form>` component you will see something like the following:
|
||||
|
||||

|
||||

|
||||
|
||||
Let's create an Angular 2 component to render missing content:
|
||||
|
||||
@@ -252,4 +252,4 @@ export class MyView {
|
||||
|
||||
At runtime you should now see your custom Angular 2 component rendered in place of the stencils:
|
||||
|
||||

|
||||

|
Reference in New Issue
Block a user