First custom Dynamic Form Module generation

This commit is contained in:
Sebastian Seedorf
2017-05-19 13:01:19 +02:00
parent 01205b16b9
commit a5fdfa32d2
12 changed files with 665 additions and 131 deletions

View File

@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import {QuestionInterface} from './modules/dyn-form/types/question.interface';
@Component({
selector: 'my-app',
@@ -9,4 +10,25 @@ export class AppComponent {
public resultCounter = 10;
public resultTag = {"alpha": true, "beta": false};
public resultTag2 = {"alpha": true, "beta": false};
public formQuestions: QuestionInterface[] = [
{
type: "flag",
description: "This is a help tooltip",
properties: {
key: "flags",
label: "Form Type Flags",
order: 1,
// dropdown && flags
options: [{key: "alpha", value: "A"}, {key: "beta", value: "B"}]
}, constraints: {
optional: true
}
}
];
submit(value: any) {
console.log("send", value);
}
}