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

Function error_alert

webiojs/src/utils.ts:142–150  ·  view source on GitHub ↗
(text: string, duration: number = 1.5)

Source from the content-addressed store, hash-verified

140
141
142export function error_alert(text: string, duration: number = 1.5) {
143 Toastify({
144 text: Mustache.escape(text),
145 duration: duration * 1000,
146 gravity: "top",
147 position: 'center',
148 backgroundColor: '#e53935',
149 }).showToast();
150}
151
152
153// make File object to Blob

Callers 4

send_messageMethod · 0.90
send_bufferMethod · 0.90
_sendMethod · 0.90
create_elementMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…