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

Method update_input

webiojs/src/models/input/slider.ts:65–74  ·  view source on GitHub ↗
(spec: any)

Source from the content-addressed store, hash-verified

63 }
64
65 update_input(spec: any): any {
66 let attributes = spec.attributes;
67 if ('value' in attributes) {
68 let range_value = this.element.find('.form-control-range-value');
69 range_value.text(
70 this.spec['float'] ? this.get_value().toFixed(2) : attributes.value
71 );
72 }
73 this.update_input_helper(-1, attributes);
74 }
75
76 get_value(): any {
77 let val = this.element.find('input[type="range"]').val();

Callers

nothing calls this directly

Calls 2

get_valueMethod · 0.95
update_input_helperMethod · 0.80

Tested by

no test coverage detected