FieldPosition

Layout and styling information for rendering a field instance.

Properties

Link copied to clipboard
abstract val backgroundColor: String?

Optional background color.

Link copied to clipboard
abstract val borderColor: String?

Optional border color.

Link copied to clipboard
abstract val borderRadius: Double?

Optional border radius.

Link copied to clipboard
abstract val borderWidth: Double?

Optional border width.

Link copied to clipboard

Per-column presentation overrides when the field is a table.

Link copied to clipboard
abstract val displayType: String?

Optional renderer/display hint.

Link copied to clipboard
abstract val field: String

Identifier of the target field this position belongs to.

Link copied to clipboard
abstract val fontColor: String?

Optional text color.

Link copied to clipboard
abstract val fontSize: Double?

Optional font size in layout units.

Link copied to clipboard
abstract val fontStyle: String?

Optional font style.

Link copied to clipboard
abstract val fontWeight: String?

Optional font weight (e.g., bold).

Link copied to clipboard
abstract val format: String?

Optional formatting hint applied by viewers.

Link copied to clipboard
abstract val height: Double

Height in layout units.

Link copied to clipboard
abstract val id: String

Unique identifier for this position entry.

Link copied to clipboard
abstract val padding: Double?

Optional padding.

Link copied to clipboard

Whether to render only in primary displays.

Link copied to clipboard
abstract val textAlign: String?

Optional horizontal text alignment.

Link copied to clipboard
abstract val textDecoration: String?

Optional text decoration.

Link copied to clipboard
abstract val textOverflow: String?

Optional overflow behavior.

Link copied to clipboard
abstract val textTransform: String?

Optional text transform (e.g., uppercase).

Link copied to clipboard
abstract val titleDisplay: String?

Optional title rendering policy.

Link copied to clipboard
abstract val type: String

Low-level style/layout type identifier.

Link copied to clipboard
abstract val width: Double

Width in layout units.

Link copied to clipboard
abstract val x: Double

Horizontal coordinate (units depend on layout context).

Link copied to clipboard
abstract val y: Double

Vertical coordinate (units depend on layout context).

Functions

Link copied to clipboard
abstract fun toJsonObject(): JsonObject

Serializes this instance to a structured JsonObject.

Link copied to clipboard
abstract fun toJsonString(): String

Serializes this instance to a compact JSON string.

Link copied to clipboard
abstract fun toMap(): MutableMap<String, Any?>

Converts this instance into a mutable key-value map suitable for mutation and re-serialization.