Icon hook for DOM.populate
Had a brain wave whilst working on some functions. Assuming my dream of schema based methodology comes true...
https://git-scm.com/book/en/v2/Git-Tools-Submodules
- Does DOM element being populated have class
icon-(inner||outer)-(left||right)
? - If true check up icon lookup table for matching element name...
- if exists & not array, append icon data
- if exists & is array, select array element based on element value, not name.
- append result to tag in appropriate area of element (inner/outer/left/right)
cached lookup table generated from schemas, eg. venueCategory - generator could also be used for others like i18n?
Well known icon sources (feel free to suggest others)
- https://phosphoricons.com/
- https://remixicon.com/
- https://lucide.dev/
- https://fontawesome.com/
- https://www.glyphicons.com/
- https://heroicons.com/
- https://materialdesignicons.com/
- https://thenounproject.com/
More
Edited by Lorin Halpert