MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / showSnackbar

Function showSnackbar

electron/renderer.js:121–125  ·  view source on GitHub ↗

* Display a snackbar message on the screen. * * @param {string} message The message to be displayed. * @param {number} timeoutMillis How many millliseconds the message * will stay on the screen before disappearing.

(message, timeoutMillis = 4000)

Source from the content-addressed store, hash-verified

119 * will stay on the screen before disappearing.
120 */
121function showSnackbar(message, timeoutMillis = 4000) {
122 snackbar.labelText = message;
123 snackbar.timeoutMs = timeoutMillis;
124 snackbar.open();
125}
126
127const filesDialogButton = document.getElementById('files-dialog-button');
128const frontendInferenceCheckbox =

Callers 2

displaySearchResultsFunction · 0.85
renderer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected