ModifierFieldValueFactory

Factory interface for creating ModifierFieldValue instances with UI for configuration.

This interface defines how to create and configure modifier field values through a UI builder. Implementations provide the title, UI content, and creation logic for specific modifier types.

Parameters

V

The specific type of ModifierFieldValue this factory creates

Inheritors

Properties

Link copied to clipboard
open val canCreate: Boolean

Whether this factory can currently create a new modifier field value. Typically based on the current configuration state.

Link copied to clipboard
abstract val title: String

The display title for this modifier type in the UI.

Functions

Link copied to clipboard
abstract fun Content(createButton: @Composable () -> Unit)

Renders the configuration UI content for this modifier.

Link copied to clipboard
abstract fun create(): Result<V>

Creates a new modifier field value instance based on current configuration.