Function flowOptions

  • Build a dynamic option list keyed by the field name (<field>_options).

    Parameters

    • field: string
    • items: readonly { id: string; title: string }[]

    Returns Record<string, { id: string; title: string }[]>

    data: { ...flowOptions("project", [{ id: "a", title: "A" }]) }