How to use the @covalent/dynamic-forms.TdDynamicElement.FileInput function in @covalent/dynamic-forms

To help you get started, we’ve selected a few @covalent/dynamic-forms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Teradata / covalent / src / app / components / components / component-demos / dynamic-forms / dynamic-forms.component.ts View on Github external
},
        },
      ],
    },
  ];

  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) => {
github Teradata / covalent / src / app / components / components / dynamic-forms / dynamic-forms.component.ts View on Github external
},
        },
      ],
    },
  ];

  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) => {
github Teradata / covalent / src / app / components / components / component-demos / dynamic-forms / dynamic-forms.component.ts View on Github external
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',
github Teradata / covalent / src / app / components / components / dynamic-forms / dynamic-forms.component.ts View on Github external
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',