Mashup Builder > Widgets > Standard Widgets > Icon Widget (Themable)
Icon Widget (Themable)
The Icon widget displays an icon in the mashup.
You can choose the icon from a ThingWorx media entity or refer to a URL to load the icon.
* 
The Icon widget supports all formats that are supported by the browser in use.
* 
The Icon widget is available as a standard widget in the platform and as a web component that you can import from an SDK.
The properties of the Icon widget follow:
Property Name
Description
Base Type
Default Value
Bindable? (Y/N)
Localizable? (Y/N)
Size
Selects the size of the icon as Small, Medium, Large, XLarge.
STRING
Small
Y
N
PreventCaching
Prevents the web browsers from caching the icon image.
BOOLEAN
False
Y
N
CustomClass
Defines the CSS to the top div of the widget. When entering multiple classes, separate each class with a space.
STRING
n/a
Y
N
AlternateText
Adds alternate text for screen readers.
STRING
n/a
Y
Y
SourceURL
Enters a URL to the icon image or selects a media entity.
MEDIA ENTITY
n/a
Y
N
SVGIcon
Select an SVG icon to display within the widget. To display a media entity, use the standard SourceURL property.
* 
The setting of Icon property has precedence over the SVGIcon property. This means that if the user has set an icon using the SourceURL property, it is displayed in the widget.
SVG Icons List
n/a
N
N
Disabled
Disables the icon in the mashup. The widget appears but it is not available to use.
* 
Applicable only to icons that use an SVG image format.
BOOLEAN
False
Y
N
Margin
Sets a margin outside the widget.
NUMBER
n/a
N
N
Was this helpful?