Roqueform
    Preparing search index...

    Function createField

    • Creates the new field instance.

      Type Parameters

      • Value = any

        The root field value.

      Returns FieldCore<undefined | Value>

    • Creates the new field instance.

      Type Parameters

      • Value

        The root field value.

      Parameters

      • initialValue: Value | (() => Value)

        The initial value assigned to the field.

      Returns FieldCore<Value>

    • Creates the new field instance.

      Type Parameters

      • Value extends any

        The root field initial value.

      • Plugins extends FieldPlugin[]

        The array of plugins applied to the field and its children.

      Parameters

      • initialValue: Value | (() => Value)

        The initial value assigned to the field.

      • plugins: Plugins

        The array of plugins applied to the field and its children.

      • Optionalaccessor: ValueAccessor

        Resolves values for child fields.

      Returns Field<Value, InjectedMixin<Plugins>>