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

Method update_input

webiojs/src/models/input/input.ts:114–123  ·  view source on GitHub ↗
(spec: any)

Source from the content-addressed store, hash-verified

112 }
113
114 update_input(spec: any): any {
115 let attributes = spec.attributes;
116 if ('datalist' in attributes) {
117 const datalist_html = Mustache.render(datalist_tpl, {datalist: attributes.datalist});
118 this.element.find('datalist').empty().append(datalist_html);
119 delete attributes['datalist'];
120 }
121
122 this.update_input_helper(-1, attributes);
123 }
124
125 get_value(): any {
126 this.rectify_input()

Callers 2

dispatch_ctrl_messageMethod · 0.45
PinUpdateFunction · 0.45

Calls 2

appendMethod · 0.80
update_input_helperMethod · 0.80

Tested by

no test coverage detected