MCPcopy Create free account
hub / github.com/apache/cloudstack / renderSvgIcon

Function renderSvgIcon

ui/src/utils/renderIcon.js:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 return h(resolveComponent(this.icon), this.props, this.event)
43 },
44 renderSvgIcon () {
45 const props = Object.assign({}, this.props)
46 props.width = '1em'
47 props.height = '1em'
48 props.class = 'custom-icon'
49
50 return h('span', { role: 'img', class: 'anticon' }, [
51 h(this.svgIcon, { ...props }, this.event)
52 ])
53 }
54 },
55 render () {
56 if (this.icon) {

Callers

nothing calls this directly

Calls 2

hFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected