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

Method dispatch_ctrl_message

webiojs/src/handlers/input.ts:302–313  ·  view source on GitHub ↗
(spec: any)

Source from the content-addressed store, hash-verified

300 };
301
302 dispatch_ctrl_message(spec: any) {
303 // 恢复原本可点击的按钮
304 this.element.find('button:not([data-pywebio-disabled])').prop("disabled", false);
305 // 移除上传进度条
306 this.element.find('.progress').remove();
307
308 if (!(spec.target_name in this.name2input)) {
309 return console.error('Can\'t find input[name=%s] element in curr form!', spec.target_name);
310 }
311
312 this.name2input[spec.target_name].update_input(spec);
313 };
314
315 // 在表单加入DOM树后,触发输入项的on_add_to_dom回调
316 after_add_to_dom() {

Callers 1

handle_messageMethod · 0.80

Calls 2

removeMethod · 0.80
update_inputMethod · 0.45

Tested by

no test coverage detected