CustomField

interface CustomField

Marks a consumer-defined io.github.robinpcrd.kotose.form.Field that renderers must hand to the application's custom renderer. The typed value, validation and conditions stay on the field itself. Renderers dispatch on kind; the native adapter also exposes the live field so a custom SwiftUI view can cast it to the consumer's own class.

Properties

Link copied to clipboard
abstract val kind: String

Stable identifier the renderer dispatches on, for example "rating".

Link copied to clipboard
open val label: StrRes?

Optional display label resolved by renderers.