How to use the @covalent/dynamic-forms.TdDynamicElement.Select 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 nhsconnect / careconnect-reference-implementation / ccri-management-app / src / main / web / src / app / component / resource / resource.component.ts View on Github external
};
         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,
github Teradata / covalent / src / app / components / components / component-demos / dynamic-forms / dynamic-forms.component.ts View on Github external
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 },
github Teradata / covalent / src / app / components / components / component-demos / dynamic-forms / dynamic-forms.component.ts View on Github external
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,
    },
github Teradata / covalent / src / app / components / components / dynamic-forms / dynamic-forms.component.ts View on Github external
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 },
github Teradata / covalent / src / app / components / components / dynamic-forms / dynamic-forms.component.ts View on Github external
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,
    },