MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / componentDidMount

Function componentDidMount

xadmin-dashboard/src/widgets/EChartBase.js:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18 // first add
19 componentDidMount() {
20 if(!this.isLayer()) {
21 const echartObj = this.renderEchartDom()
22 // on resize
23 if(echartObj) {
24 elementResizeEvent(this.refs.echartsDom, () => {
25 echartObj.resize()
26 })
27 }
28 } else {
29 const { cellKey, echartParent } = this.props
30 echartParent.series[cellKey] = this.getSeries()
31 }
32 }
33
34 // update
35 componentDidUpdate() {

Callers

nothing calls this directly

Calls 1

renderEchartDomMethod · 0.80

Tested by

no test coverage detected