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

Method on_reset

webiojs/src/models/input/select.ts:116–123  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

114 }
115
116 on_reset(e: any) {
117 // need to wait some time to get the select element be reset, and then update `selectpicker`
118 if (this.use_bootstrap_select)
119 setTimeout(() => {
120 // @ts-ignore
121 this.element.find('select').selectpicker('render');
122 }, 100)
123 }
124
125 get_value(): any {
126 let raw_val = this.element.find('select').val();

Callers 1

create_elementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected