setValue method presentation
Last updated: 2026-03-04T23:21:38.428Z
Metrics
LOC: 7
Complexity: 4
Params: 1
Signature
setValue(value: string): : void
Source Code
setValue(value: string): void {
const found = this.flat.find((o) => o.value === value);
this._value = value;
this._label = found?.label ?? value;
if (this.input) this.input.value = this._label;
if (this.hiddenInput) this.hiddenInput.value = this._value;
}
No outgoing dependencies.
No incoming dependencies.