Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
let nodeT2 :ITdDynamicElementConfig = {
"label": 'Code - '+param.name + ' - '+param.documentation,
"name" : param.type+'-'+seq + '-2-'+param.name,
"type": TdDynamicElement.Input,
"flex" : 50
};
this.elements.push(nodeT1);
this.elements.push(nodeT2);
break;
case 'string' :
// add matches
let nodeOpt: ITdDynamicElementConfig = {
"label": "match",
"name": param.type+'-'+seq + '-1-'+param.name,
"type": TdDynamicElement.Select,
"selections": [
{
"label": "Matches",
"value": ""
},
{
"label": "Exactly",
"value": "exact"
}
],
"required": true
,"flex" : 20
};
let nodeS :ITdDynamicElementConfig = {
"label": param.name + ' - '+param.documentation,
name: 'checkbox',
type: TdDynamicElement.Checkbox,
hint: 'this is a checkbox',
},
];
arrayElements: ITdDynamicElementConfig[] = [
{
name: 'array',
type: TdDynamicType.Array,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
default: 'Test1',
},
{
name: 'required-select',
type: TdDynamicElement.Select,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'required-multiple-select',
type: TdDynamicElement.Select,
multiple: true,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'value-label-select',
hint: 'this is a select hint',
type: TdDynamicElement.Select,
selections: [
{ label: 'Test1', value: 1 },
arrayElements: ITdDynamicElementConfig[] = [
{
name: 'array',
type: TdDynamicType.Array,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
default: 'Test1',
},
{
name: 'required-select',
type: TdDynamicElement.Select,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'required-multiple-select',
type: TdDynamicElement.Select,
multiple: true,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'value-label-select',
hint: 'this is a select hint',
type: TdDynamicElement.Select,
selections: [
{ label: 'Test1', value: 1 },
{ label: 'Test2', value: 2 },
{ label: 'Test3', value: 3 },
{ label: 'Test4', value: 4 },
],
required: true,
},
name: 'checkbox',
type: TdDynamicElement.Checkbox,
hint: 'this is a checkbox',
},
];
arrayElements: ITdDynamicElementConfig[] = [
{
name: 'array',
type: TdDynamicType.Array,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
default: 'Test1',
},
{
name: 'required-select',
type: TdDynamicElement.Select,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'required-multiple-select',
type: TdDynamicElement.Select,
multiple: true,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'value-label-select',
hint: 'this is a select hint',
type: TdDynamicElement.Select,
selections: [
{ label: 'Test1', value: 1 },
arrayElements: ITdDynamicElementConfig[] = [
{
name: 'array',
type: TdDynamicType.Array,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
default: 'Test1',
},
{
name: 'required-select',
type: TdDynamicElement.Select,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'required-multiple-select',
type: TdDynamicElement.Select,
multiple: true,
selections: ['Test1', 'Test2', 'Test3', 'Test4'],
required: true,
},
{
name: 'value-label-select',
hint: 'this is a select hint',
type: TdDynamicElement.Select,
selections: [
{ label: 'Test1', value: 1 },
{ label: 'Test2', value: 2 },
{ label: 'Test3', value: 3 },
{ label: 'Test4', value: 4 },
],
required: true,
},