MCPcopy
hub / github.com/visgl/deck.gl / onRenderHTML

Method onRenderHTML

modules/widgets/src/loading-widget.tsx:53–65  ·  view source on GitHub ↗
(rootElement: HTMLElement)

Source from the content-addressed store, hash-verified

51 }
52
53 onRenderHTML(rootElement: HTMLElement): void {
54 render(
55 // TODO(ibgreen) - this should not be a button, but styling is so nested that it is easier to reuse this component.
56 this.loading && (
57 <IconButton
58 className="deck-widget-spinner"
59 label={this.props.label}
60 onClick={this.handleClick.bind(this)}
61 />
62 ),
63 rootElement
64 );
65 }
66
67 onRedraw({layers}: {layers: Layer[]}): void {
68 const loading = layers.some(layer => !layer.isLoaded);

Callers

nothing calls this directly

Calls 2

renderFunction · 0.50
bindMethod · 0.45

Tested by

no test coverage detected