From 5f8a00131ef2758f0a3c5a4f7297fab82d3016c3 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Thu, 11 Apr 2024 18:19:14 +0800 Subject: [PATCH] added support for custom icon components for extensions --- addon/services/universe.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addon/services/universe.js b/addon/services/universe.js index c2f17b0..917b4d7 100644 --- a/addon/services/universe.js +++ b/addon/services/universe.js @@ -993,7 +993,10 @@ export default class UniverseService extends Service.extend(Evented) { const index = this._getOption(options, 'index', 0); const onClick = this._getOption(options, 'onClick', null); const section = this._getOption(options, 'section', null); + const iconComponent = this._getOption(options, 'iconComponent', null); + const iconComponentOptions = this._getOption(options, 'iconComponentOptions', {}); const iconSize = this._getOption(options, 'iconSize', null); + const iconPrefix = this._getOption(options, 'iconPrefix', null); const iconClass = this._getOption(options, 'iconClass', null); const itemClass = this._getOption(options, 'class', null); const inlineClass = this._getOption(options, 'inlineClass', null); @@ -1024,7 +1027,10 @@ export default class UniverseService extends Service.extend(Evented) { index, section, onClick, + iconComponent, + iconComponentOptions, iconSize, + iconPrefix, iconClass, class: itemClass, inlineClass,