Skip to content

Commit c632767

Browse files
committed
added tags
1 parent db91578 commit c632767

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

client/src/app/core/formcomponents/tags/tags.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<ng-template #templateRef let-data>
22
<div>
3+
<!-- (keyup.enter) -->
34
<winput
45
[placeholder]="data.field.Placeholder"
56
[label]="data.field.Label"

client/src/app/pages/guest/components/components.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<h2>Document Preview:</h2>
44
<span>{{submition|json}}</span>
55
</div>
6+
67
<wform [config]="form" [submition]="submition"></wform>
78

89
<winput></winput>

client/src/app/pages/guest/components/components.component.ts

+31-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { FormService } from 'src/app/core/modules/form/form.service';
33
import { FormInterface } from 'src/app/core/modules/form/interfaces/form.interface';
44

55
@Component({
6-
templateUrl: './components.component.html',
7-
styleUrls: ['./components.component.scss'],
8-
standalone: false
6+
templateUrl: './components.component.html',
7+
styleUrls: ['./components.component.scss'],
8+
standalone: false
99
})
1010
export class ComponentsComponent {
1111
submition: Record<string, unknown> = {
@@ -84,6 +84,34 @@ export class ComponentsComponent {
8484
}
8585
]
8686
},
87+
{
88+
name: 'Tags',
89+
key: 'tags',
90+
fields: [
91+
{
92+
name: 'Placeholder',
93+
value: 'Enter tags'
94+
},
95+
{
96+
name: 'Label',
97+
value: 'Tags'
98+
}
99+
]
100+
},
101+
{
102+
name: 'Tags',
103+
key: 'tags2',
104+
fields: [
105+
{
106+
name: 'Placeholder',
107+
value: 'Enter tags2'
108+
},
109+
{
110+
name: 'Label',
111+
value: 'Tags2'
112+
}
113+
]
114+
},
87115
{
88116
name: 'Email',
89117
key: 'email',

0 commit comments

Comments
 (0)