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

Method update_input

webiojs/src/models/input/actions.ts:57–69  ·  view source on GitHub ↗
(spec: any)

Source from the content-addressed store, hash-verified

55 }
56
57 update_input(spec: any): any {
58 let attributes = spec.attributes;
59 let idx = -1;
60 if ('target_value' in spec) {
61 this.element.find('button').each(function (index) {
62 if (JSON.parse($(this).val() as string) === spec.target_value) {
63 idx = index;
64 return false;
65 }
66 });
67 }
68 this.update_input_helper(idx, attributes);
69 }
70
71 get_value(): any {
72 return this.submit_value;

Callers

nothing calls this directly

Calls 2

update_input_helperMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected