CombinedField

constructor(label: String, fields: List<MutablePreviewLabField<out Base>>, combine: (List<Base>) -> Value, split: (Value) -> List<Base>)

Parameters

Base

The base type of the individual sub-fields

Value

The composite value type created by combining the sub-fields

label

The display label for this combined field

fields

The list of sub-fields to combine

combine

Function to combine values from sub-fields into the composite value

split

Function to split a composite value back into individual sub-field values