constructor method presentation
Last updated: 2026-03-04T23:21:38.428Z
Metrics
LOC: 7
Complexity: 3
Params: 1
Signature
constructor(private readonly opts: SearchableSelectOptions)
Source Code
constructor(private readonly opts: SearchableSelectOptions) {
this.flat = flattenEntries(opts.entries);
this._value = opts.value ?? "";
const found = this.flat.find((o) => o.value === this._value);
this._label = found?.label ?? "";
this.boundHandleOutsideClick = this.handleOutsideClick.bind(this);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| flattenEntries | calls |
No incoming dependencies.