Using the Expand Widget in ArcGIS Maps SDK for JavaScript, how can I specify a custom icon (eg an SVG or PNG image) rather than the Esri Calcite icons?
The expandIcon
parameter only accepts a string which should match the name of a Calcite Icon (eg "layers"). I wish to use my own icon instead:
const bgExpand = new Expand({
view: view,
content: basemapGallery,
expandIcon: 'https://i.imgur.com/ESUiDwT.png'
});
However, this has no effect and the icon is blank.
The expandIconClass
looks as though it could be used to override this with an icon specified in CSS, but this is now deprecated.
How can I manually choose the icon shown in the Expand widget?