MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / get_value

Method get_value

webiojs/src/models/input/slider.ts:76–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 get_value(): any {
77 let val = this.element.find('input[type="range"]').val();
78 if (this.spec['float'])
79 val = parseFloat(val as string);
80 else
81 val = parseInt(val as string);
82 return val;
83 }
84
85}
86

Callers 2

create_elementMethod · 0.95
update_inputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected