MCPcopy Create free account
hub / github.com/alefore/knit / constructor

Method constructor

src/inputs.ts:15–27  ·  view source on GitHub ↗
(
      name: string, tooltip: string, defaultValue: string|number,
      units: string|null = null, selectValues: string[]|null = null)

Source from the content-addressed store, hash-verified

13 private visibilityRequirements: (() => boolean)[];
14
15 constructor(
16 name: string, tooltip: string, defaultValue: string|number,
17 units: string|null = null, selectValues: string[]|null = null) {
18 this.name = name;
19 this.tooltip = tooltip;
20 this.defaultValue = defaultValue;
21 this.units = units;
22 this.formInput = null;
23 this.selectValues = selectValues;
24 this.listener = new EventListener();
25 this.tr = null;
26 this.visibilityRequirements = [];
27 }
28
29 setValuesFromHash(parsedHash: URLSearchParams): void {
30 const input = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected