Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelectedIndexValueAccessor

The accessor for setting a selectedIndex and listening to changes that is used by the {@link NgModel} directives.

Example

 <SegmentedBar [(ngModel)]="model.test">

Hierarchy

Implements

  • ControlValueAccessor
  • AfterViewInit

Index

Constructors

constructor

Properties

Private value

value: number

view

Private viewInitialized

viewInitialized: boolean

Methods

ngAfterViewInit

  • ngAfterViewInit(): void

Protected normalizeValue

  • normalizeValue(value: any): any

onChange

  • onChange(_: any): void

onTouched

  • onTouched(): void

registerOnChange

  • registerOnChange(fn: function): void

registerOnTouched

  • registerOnTouched(fn: function): void

setDisabledState

  • setDisabledState(isDisabled: boolean): void

writeValue

  • writeValue(value: any): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method