Skip to main content

ZoneSelectorComponent

ZoneSelectorComponent

A form control for selecting zones.

Signature
class ZoneSelectorComponent implements ControlValueAccessor {
@Output() selectedValuesChange = new EventEmitter<Zone>();
@Input() readonly = false;
@Input() transformControlValueAccessorValue: (value: Zone | undefined) => any = value => value?.id;
selectedId$ = new Subject<string>();
onChangeFn: (val: any) => void;
onTouchFn: () => void;
disabled = false;
value: string | Zone;
zones$ = this.dataService
.query(GetZoneSelectorListDocument, { options: { take: 999 } })
.mapSingle(result => result.zones.items);
constructor(dataService: DataService, changeDetectorRef: ChangeDetectorRef)
onChange(selected: Zone) => ;
registerOnChange(fn: any) => ;
registerOnTouched(fn: any) => ;
setDisabledState(isDisabled: boolean) => void;
focus() => ;
writeValue(obj: string | Zone | null) => void;
}
  • Implements: ControlValueAccessor

selectedValuesChange

property

readonly

property

transformControlValueAccessorValue

property
(value: Zone | undefined) => any

selectedId$

property

onChangeFn

property
(val: any) => void

onTouchFn

property
() => void

disabled

property

value

property
string | Zone

zones$

property

constructor

method
(dataService: DataService, changeDetectorRef: ChangeDetectorRef) => ZoneSelectorComponent

onChange

method
(selected: Zone) =>

registerOnChange

method
(fn: any) =>

registerOnTouched

method
(fn: any) =>

setDisabledState

method
(isDisabled: boolean) => void

focus

method
() =>

writeValue

method
(obj: string | Zone | null) => void