@angular/forms#ControlContainer TypeScript Examples

The following examples show how to use @angular/forms#ControlContainer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: checkbox.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-checkbox-widget',
  templateUrl: './checkbox.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class CheckboxWidget implements OnInit {
  @Input() ui: CheckboxUI;
  @Input() name: string;
  
  constructor() { }

  ngOnInit() {
    
  }
}
Example #2
Source File: radio.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-radio-widget',
  templateUrl: './radio.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class RadioWidget implements OnInit {
  @Input() ui: RadioUI;
  @Input() name: string;

  constructor() { }

  ngOnInit() {
    
  }
}
Example #3
Source File: select.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-select-widget',
  templateUrl: './select.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class SelectWidget implements OnInit {
  @Input() ui: SelectUI;
  @Input() name: string;
  
  constructor() { }

  ngOnInit() {
    
  }
}
Example #4
Source File: tags-input.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-tags-input-widget',
  templateUrl: './tags-input.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class TagsInputWidget implements OnInit {
  @Input() ui: TagsInputUI;
  @Input() name: string;

  _max: number = Number.MAX_SAFE_INTEGER;
  constructor() { }

  ngOnInit() {
    
  }
}
Example #5
Source File: text-input.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-text-input-widget',
  templateUrl: './text-input.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class TextInputWidget implements OnInit {
  @Input() ui: TextInputUI;
  @Input() name: string;
  
  constructor() { }

  ngOnInit() {
    
  }
}
Example #6
Source File: textarea.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-textarea-widget',
  templateUrl: './textarea.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class TextAreaWidget implements OnInit {
  @Input() ui: TextAreaUI;
  @Input() name: string;
  
  constructor() { }

  ngOnInit() {
    
  }
}
Example #7
Source File: toggle.widget.ts    From ng-devui-admin with MIT License 6 votes vote down vote up
@Component({
  selector: 'da-toggle-widget',
  templateUrl: './toggle.widget.html',
  viewProviders: [ { provide: ControlContainer, useExisting: NgForm }]
})
export class ToggleWidget implements OnInit {
  @Input() ui: ToggleUI;
  @Input() name: string;

  constructor() { }

  ngOnInit() {
    
  }
}
Example #8
Source File: form.directive.ts    From alauda-ui with MIT License 5 votes vote down vote up
constructor(
    @Inject(ControlContainer)
    @Optional()
    public controlContainer?: ControlContainer,
  ) {}
Example #9
Source File: chip.component.ts    From coronatest with GNU Affero General Public License v3.0 5 votes vote down vote up
constructor(
        public controlContainer: ControlContainer
    ) {
    }