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

Method check_valid

webiojs/src/models/input/textarea.ts:109–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 };
108
109 check_valid(): boolean {
110 if (this.code_mirror && this.spec.required && !this.get_value()) {
111 this.update_input_helper(-1, {
112 'valid_status': false,
113 'invalid_feedback': "Please fill out this field.",
114 });
115 return false;
116 }
117 return true;
118 }
119
120 after_show(first_show: boolean): any {
121 if (first_show && this.spec.code) {

Callers

nothing calls this directly

Calls 2

get_valueMethod · 0.95
update_input_helperMethod · 0.80

Tested by

no test coverage detected