Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Condition(val scope: String, val schema: Property)

Represents a condition to be evaluated.

Link copied to clipboard
@Serializable
@SerialName(value = "Control")
data class Control(val scope: String, var label: String? = null, val options: ControlOptions? = null, val elements: ImmutableList<UiSchema>? = null, val rule: Rule? = null) : UiSchema

A control element which represent a UI element in the form.

Link copied to clipboard
@Serializable
data class ControlOptions(val format: Format? = null, val orientation: Orientation? = null, val verticalSpacing: String? = null, val horizontalSpacing: String? = null, val readOnly: Boolean = false, val showMaxCounter: Boolean = false, val hasFirstLetterCapitalized: Boolean = false, val weight: Float? = null) : Options

An option for a control element.

Link copied to clipboard
enum Effect : Enum<Effect>

The different rule effects.

Link copied to clipboard
enum Format : Enum<Format>

The different formats.

Link copied to clipboard
@Serializable
@SerialName(value = "Group")
data class GroupLayout(val label: String, val description: String? = null, val elements: ImmutableList<UiSchema> = persistentListOf(), val rule: Rule? = null, val options: LayoutOptions? = null) : UiSchema

A group resembles a vertical layout, but additionally might have a label. This layout is useful when grouping different elements by a certain criteria.

Link copied to clipboard
@Serializable
@SerialName(value = "HorizontalLayout")
data class HorizontalLayout(val elements: ImmutableList<UiSchema> = persistentListOf(), val rule: Rule? = null, val options: LayoutOptions? = null) : UiSchema

A layout which orders its children horizontally (i.e. from left to right).

Link copied to clipboard
@Serializable
data class LayoutOptions(val verticalSpacing: String? = null, val horizontalSpacing: String? = null, val weight: Float? = null) : Options

Options for a layout element.

Link copied to clipboard
interface Options
Link copied to clipboard
Link copied to clipboard
@Serializable
data class Rule(val effect: Effect, val condition: Condition)

A rule that may be attached to any UI schema element.

Link copied to clipboard
@Serializable
sealed class UiSchema

Common base sealed class for any UI schema element.

Link copied to clipboard
@Serializable
@SerialName(value = "VerticalLayout")
data class VerticalLayout(val elements: ImmutableList<UiSchema> = persistentListOf(), val rule: Rule? = null, val options: LayoutOptions? = null) : UiSchema

A layout which orders its child elements vertically (i.e. from top to bottom).