MCPcopy Create free account
hub / github.com/facebook/Rapid / loading

Function loading

modules/ui/loading.js:14–35  ·  view source on GitHub ↗
(selection)

Source from the content-addressed store, hash-verified

12
13
14 let loading = (selection) => {
15 _modalSelection = uiModal(selection, _blocking);
16
17 let loadertext = _modalSelection.select('.content')
18 .classed('loading-modal', true)
19 .append('div')
20 .attr('class', 'modal-section fillL');
21
22 loadertext
23 .append('img')
24 .attr('class', 'loader')
25 .attr('src', assets.getFileURL('img/loader-white.gif'));
26
27 loadertext
28 .append('h3')
29 .text(_message);
30
31 _modalSelection.select('button.close')
32 .attr('class', 'hide');
33
34 return loading;
35 };
36
37
38 loading.message = function(val) {

Callers

nothing calls this directly

Calls 2

uiModalFunction · 0.90
getFileURLMethod · 0.80

Tested by

no test coverage detected