class UIIconResource
A class that represents icon source content.
class UIIconResource;
Notes
- For the web renderer, content can be SVG, HTML, or plain text.
- Use as an image source, or with text elements and buttons.
Description
Create icons using new UIIconResource(content), or reference named icons using UI.icons or UIIconResource.getIcon.
Constructor
new UIIconResource()
Creates a new icon instance.
Type members
type UIIconResource.IconName static
A type that represents icon names, supporting both standard names and custom strings.
Static members
UIIconResource.setIcons() static
Sets icons in the global icon registry.UIIconResource.getIcon() static
Returns an icon reference by name.UIIconResource.defaults static
An object containing all standard icon references.
Instance members
setMirrorRTL()
Sets whether this icon should be mirrored in RTL mode.isMirrorRTL()
Returns true if this icon should be mirrored in RTL mode.toString()
Returns the icon content string (SVG, HTML, or plain text).
