Skip to content

Instantly share code, notes, and snippets.

@shhdharmen
Created November 24, 2023 14:15
Show Gist options
  • Save shhdharmen/a3e09384b06f2ea6e6fddc585071c471 to your computer and use it in GitHub Desktop.
Save shhdharmen/a3e09384b06f2ea6e6fddc585071c471 to your computer and use it in GitHub Desktop.
# Methods Use when
1 addSvgIcon, addSvgIconInNamespace Each icon has separate SVG file
2 addSvgIconLiteral, addSvgIconLiteralInNamespace Each icon has SVG string literals, for example, icon string is coming from server
3 addSvgIconResolver Individual icon's SVG files' location share same logic, for example, they are located under one folder
4 addSvgIconSet, addSvgIconSetInNamespace All icons are present in same SVG sprite file
5 addSvgIconSetLiteral, addSvgIconSetLiteralInNamespace All icons are present in same SVG sprite and sprite is stored as string, for example, coming from server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment