MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / get_value

Method get_value

webiojs/src/models/input/input.ts:125–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 get_value(): any {
126 this.rectify_input()
127 let val = this.element.find('input').val();
128 if (this.spec['type'] == 'number')
129 val = parseInt(val as string);
130 else if (this.spec['type'] == 'float')
131 val = parseFloat(val as string);
132 return val;
133 }
134}
135

Callers 7

create_elementMethod · 0.95
check_validMethod · 0.95
_activate_formMethod · 0.45
handle_messageMethod · 0.45
create_elementMethod · 0.45
_getPinValueFunction · 0.45
pin.tsFile · 0.45

Calls 1

rectify_inputMethod · 0.95

Tested by

no test coverage detected