IconsetMixin

external interface IconsetMixin

Inheritors

Properties

Link copied to clipboard
abstract val attachedIcons: JsAny?

Set of the vaadin-icon instances in the DOM.

Link copied to clipboard
abstract var name: String

The name of the iconset. Every iconset is required to have its own unique name. All the SVG icons in the iconset must have IDs conforming to its name.

Link copied to clipboard
abstract var size: Double

The size of an individual icon. Note that icons must be square.

Functions

Link copied to clipboard
abstract fun getIconset(name: String): IconsetElement

Returns an instance of the iconset by its name.

Link copied to clipboard
abstract fun getIconSvg(icon: String, name: String?): IconSvgInfo

Returns SVGTemplateResult for the icon ID matching name of the iconset, or nothing literal if there is no matching icon found.

Link copied to clipboard
abstract fun register(name: String, size: Double, template: HTMLTemplateElement?)

Register an iconset without adding to the DOM.