It is now possible to request alternative rendering methods also through
the JavaScript IconAPI for the backend. A new parameter has been added
to the getIcon function that now accepts
the markupIdentifier for alternative
rendering output, as it's also possible within PHP.
Currently this is only used by the
SvgIconProvider to deliver inline-SVGs
instead of linking them in an img tag.
Feature: #75579 - Add markupIdentifier support to JavaScript IconAPI
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/8.1/Feature-75579-AddMarkupIdentifierSupportToJavaScriptIconAPI.html
Feature: #75579 - Add markupIdentifier support to JavaScript IconAPI
See 75579
Description
It is now possible to request alternative rendering methods also through the JavaScript IconAPI for the backend. A new parameter has been added to the getIcon function that now accepts the markupIdentifier for alternative rendering output, as it's also possible within PHP.
Currently this is only used by the SvgIconProvider to deliver inline-SVGs instead of linking them in an img tag.
Example 1: default, without alternativeMarkup
Example 2: with alternativeMarkup = inline