In this example config this sets the icon element classes to material-icons-round and uses the icon or icon name as the textContent { icon: 'info' } or { icon: { name: 'info' } } would both set the icon textContent to info.
This change makes it possible to use material icon variations but should also be useful for other iconPack implementation.
Sorry for the duplicate PR, will remove the original one as it was based on a master branch.
This PR allows us to set iconPack to an object like so:
In this example config this sets the icon element classes to
material-icons-round
and uses the icon or icon name as the textContent{ icon: 'info' }
or{ icon: { name: 'info' } }
would both set the icon textContent toinfo
.This change makes it possible to use material icon variations but should also be useful for other iconPack implementation.