WidgetType

abstract class WidgetType

Base class for custom inline/block widgets. Subclasses implement Content as a Compose composable instead of toDOM().

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Estimated height in pixels, or -1 if unknown.

Link copied to clipboard

Whether the widget should ignore pointer events.

Link copied to clipboard
open val lineBreaks: Int

Number of line breaks the widget introduces.

Functions

Link copied to clipboard
abstract fun Content()

Render the widget as a composable.

Link copied to clipboard
open fun destroy()

Called when the widget is no longer needed.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean