---
title: "Feature: #75579 - Add markupIdentifier support to JavaScript IconAPI"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-75579"
source: "Changelog/8.1/Feature-75579-AddMarkupIdentifierSupportToJavaScriptIconAPI.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Feature: #75579 - Add markupIdentifier support to JavaScript IconAPI

See [forge#75579](https://forge.typo3.org/issues/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

```javascript
require(['TYPO3/CMS/Backend/Icons'], function(Icons) {
   var iconName = 'actions-view-list-collapse';
   Icons.getIcon(iconName, Icons.sizes.small).done(function(icon) {
      console.log(icon);
   });
});
```

Example 2: with alternativeMarkup = inline

```javascript
require(['TYPO3/CMS/Backend/Icons'], function(Icons) {
   var iconName = 'actions-view-list-collapse';
   Icons.getIcon(iconName, Icons.sizes.small, null, null, 'inline').done(function(icon) {
      console.log(icon);
   });
});
```
