Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
},
],
},
];
elementOptions: any[] = [
TdDynamicElement.Input,
TdDynamicType.Number,
TdDynamicElement.Datepicker,
TdDynamicElement.Password,
TdDynamicElement.Textarea,
TdDynamicElement.Slider,
TdDynamicElement.Checkbox,
TdDynamicElement.SlideToggle,
TdDynamicElement.FileInput,
];
showDynamicCode: boolean = false;
type: any;
count: number = 2;
customValidationElements: ITdDynamicElementConfig[] = [
{
name: 'evenElement',
label: 'Even Number',
type: TdDynamicType.Number,
validators: [
{
validator: (control: AbstractControl) => {
},
},
],
},
];
elementOptions: any[] = [
TdDynamicElement.Input,
TdDynamicType.Number,
TdDynamicElement.Datepicker,
TdDynamicElement.Password,
TdDynamicElement.Textarea,
TdDynamicElement.Slider,
TdDynamicElement.Checkbox,
TdDynamicElement.SlideToggle,
TdDynamicElement.FileInput,
];
showDynamicCode: boolean = false;
type: any;
count: number = 2;
customValidationElements: ITdDynamicElementConfig[] = [
{
name: 'evenElement',
label: 'Even Number',
type: TdDynamicType.Number,
validators: [
{
validator: (control: AbstractControl) => {
selections: [
{ label: 'Test1', value: 1 },
{ label: 'Test2', value: 2 },
{ label: 'Test3', value: 3 },
{ label: 'Test4', value: 4 },
],
required: true,
},
];
fileElements: ITdDynamicElementConfig[] = [
{
name: 'file-input',
label: 'Browse a file',
hint: 'this is a file input hint',
type: TdDynamicElement.FileInput,
},
];
dateElements: ITdDynamicElementConfig[] = [
{
name: 'date-input',
label: 'Select a date',
hint: 'this is a datepicker hint',
type: TdDynamicElement.Datepicker,
min: new Date(2018, 1, 1).setHours(0, 0, 0, 0),
},
];
dynamicElements: ITdDynamicElementConfig[] = [
{
name: 'element-0',
selections: [
{ label: 'Test1', value: 1 },
{ label: 'Test2', value: 2 },
{ label: 'Test3', value: 3 },
{ label: 'Test4', value: 4 },
],
required: true,
},
];
fileElements: ITdDynamicElementConfig[] = [
{
name: 'file-input',
label: 'Browse a file',
hint: 'this is a file input hint',
type: TdDynamicElement.FileInput,
},
];
dateElements: ITdDynamicElementConfig[] = [
{
name: 'date-input',
label: 'Select a date',
hint: 'this is a datepicker hint',
type: TdDynamicElement.Datepicker,
min: new Date(2018, 1, 1).setHours(0, 0, 0, 0),
},
];
dynamicElements: ITdDynamicElementConfig[] = [
{
name: 'element-0',