Sha256: 7460ef4065d91a618a2a17dec2a7e8822cc0fe5bf9c2d5e3c4d4a21caf07ecdf
Contents?: true
Size: 749 Bytes
Versions: 18
Compression:
Stored size: 749 Bytes
Contents
import {expandParam} from './action_parameter'; export class VSnackbarEvent { constructor(options, params, event, root = document) { this.options = options; this.text = params.text; this.event = event; this.root = root; const snackbarElem = this.root.querySelector('.mdc-snackbar'); this.snackbar = snackbarElem.vComponent; } call(results) { const snackbar = this.snackbar; const message = expandParam(results, this.text); return new Promise(function(resolve) { console.debug('Showing snackbar'); snackbar.display(message); results.push({action: 'snackbar', statusCode: 200}); resolve(results); }); } }
Version data entries
18 entries across 18 versions & 2 rubygems