W3cubDocs

/Angular 2 TypeScript

SelectMultipleControlValueAccessor

Stable Directive

Class Overview

class SelectMultipleControlValueAccessor implements ControlValueAccessor {
  constructor(_renderer: Renderer, _elementRef: ElementRef)
  
  
  value : any
  onChange : (_: any) => {}
  onTouched : () => {}
  writeValue(value: any) : void
  registerOnChange(fn: (value: any) => any) : void
  registerOnTouched(fn: () => any) : void
  setDisabledState(isDisabled: boolean) : void
}

Selectors

select[multiple][formControlName]

select[multiple][formControl]

select[multiple][ngModel]

Class Description

The accessor for writing a value and listening to changes on a select element.

Constructor

constructor(_renderer: Renderer, _elementRef: ElementRef)

Class Details

value : any
onChange : (_: any) => {}
onTouched : () => {}
writeValue(value: any) : void
registerOnChange(fn: (value: any) => any) : void
registerOnTouched(fn: () => any) : void
setDisabledState(isDisabled: boolean) : void

exported from @angular/forms/index, defined in @angular/forms/src/directives/select_multiple_control_value_accessor.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/forms/index/SelectMultipleControlValueAccessor-directive.html