SVG/SVGComponent

Description:
  • SVGComponent represent SVG icon. Use this component for every SVG icon in application.

Source:
Properties:
Name Type Description
context object

Context assigned form SVGProvider

Properties
Name Type Description
svg object
Properties
Name Type Description
loadedSVGs Array
checkSvg function
loadSvg function
getIdFromSrc function
getNameFromSrc function

SVGComponent represent SVG icon. Use this component for every SVG icon in application.

Methods

componentDidUpdate(prevProps) → {void}

Description:
  • If src change repeat process from componentWillMount

Source:
Parameters:
Name Type Description
prevProps object
Returns:
Type
void

componentWillMount() → {void}

Description:
  • Load svg from server if its not loaded previously

Source:
Returns:
Type
void

render() → {view}

Description:
  • Render

Source:
Returns:
Type
view

Type Definitions

props

Source:
Properties:
Name Type Attributes Description
src string
className string
onClick function <optional>
Type:
  • object