当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript core.DynamicFormService类代码示例

本文整理汇总了TypeScript中@ng-dynamic-forms/core.DynamicFormService的典型用法代码示例。如果您正苦于以下问题:TypeScript DynamicFormService类的具体用法?TypeScript DynamicFormService怎么用?TypeScript DynamicFormService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DynamicFormService类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: beforeEach

    beforeEach(inject([DynamicFormService], (service: DynamicFormService) => {

        formGroup = service.createFormGroup(formModel);

        component.group = formGroup;
        component.model = testModel;

        fixture.detectChanges();

        testElement = debugElement.query(By.css(`p-inputSwitch[id="${testModel.id}"]`));
    }));
开发者ID:thanhdevapp,项目名称:ng-dynamic-forms,代码行数:11,代码来源:dynamic-primeng-input-switch.component.spec.ts

示例2: beforeEach

    beforeEach(inject([DynamicFormService], (service: DynamicFormService) => {

        formGroup = service.createFormGroup(formModel);

        component.group = formGroup;
        component.model = testModel;

        fixture.detectChanges();

        testElement = debugElement.query(By.css(`fieldset[role="radiogroup"]`));
    }));
开发者ID:thanhdevapp,项目名称:ng-dynamic-forms,代码行数:11,代码来源:dynamic-kendo-radio-group.component.spec.ts

示例3: beforeEach

    beforeEach(inject([DynamicFormService], (service: DynamicFormService) => {

        formGroup = service.createFormGroup(formModel);

        component.group = formGroup;
        component.model = testModel;

        fixture.detectChanges();

        testElement = debugElement.query(By.css(`mat-datepicker`));
    }));
开发者ID:thanhdevapp,项目名称:ng-dynamic-forms,代码行数:11,代码来源:dynamic-material-datepicker.component.spec.ts

示例4: inject

 inject([DynamicFormService], (service: DynamicFormService) => {
   formGroup = service.createFormGroup(formModel);
   component.group = formGroup;
   component.model = testModel;
   component.ngOnChanges({
     group: new SimpleChange(null, component.group, true),
     model: new SimpleChange(null, component.model, true)
   });
   fixture.detectChanges();
   testElement = debugElement.query(By.css(`input[name='foo']`));
 })
开发者ID:gnodet,项目名称:syndesis,代码行数:11,代码来源:syndesis-form-control.component.spec.ts

示例5: ngOnInit

  ngOnInit() {
    this.formModel = this.configurationService.getFormModel(
      this.connection,
      false
    );
    this.formGroup = this.formService.createFormGroup(this.formModel);
    this.formChangesSubscription = this.formGroup.valueChanges.subscribe(
      data => {
        this.connection.configuredProperties = this.configurationService.sanitize(data);
      }
    );

    this.current.formGroup = (this.hasCredentials) ? null : this.formGroup;
  }
开发者ID:gnodet,项目名称:syndesis,代码行数:14,代码来源:configure-fields.component.ts

示例6: ngOnInit

 ngOnInit() {
   this.formModel = this.configurationService.getFormModel(
     this.connection,
     false
   );
   this.formGroup = this.formService.createFormGroup(this.formModel);
   this.formChangesSubscription = this.formGroup.valueChanges.subscribe(
     data => {
       Object.keys(data).forEach(key => {
         if (data[key] === null) {
           delete data[key];
         }
       });
       this.connection.configuredProperties = data;
     }
   );
 }
开发者ID:hawtio,项目名称:hawtio-ipaas,代码行数:17,代码来源:configure-fields.component.ts

示例7: clear

 clear() {
     this.formService.clearFormArray(this.arrayControl, this.arrayModel);
 }
开发者ID:udos86,项目名称:ng2-dynamic-forms,代码行数:3,代码来源:basic-sample-form.component.ts

示例8: remove

 remove(index: number) {
     this.formService.removeFormArrayGroup(index, this.arrayControl, this.arrayModel);
 }
开发者ID:udos86,项目名称:ng2-dynamic-forms,代码行数:3,代码来源:basic-sample-form.component.ts

示例9: add

 add() {
     this.formService.addFormArrayGroup(this.arrayControl, this.arrayModel);
 }
开发者ID:udos86,项目名称:ng2-dynamic-forms,代码行数:3,代码来源:basic-sample-form.component.ts


注:本文中的@ng-dynamic-forms/core.DynamicFormService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。