Function FkMultiSelectField

  • Multi-select input for array foreign-key (x-fk) fields.

    Backed by an MUI Autocomplete over fkOptions; selected values are matched against the option list and emitted as an array of option values. On open it calls onOpen (for lazy FK loading) and freezes the current selection so already-picked options sort first. Only one chip is shown inline (plus a +N chip) to keep the row compact; loading reflects fkLoading.

    Props:

    • field - the field metadata (label, description, readOnly).
    • value - the current array of selected FK values.
    • onChange - called with the new array of values.
    • fkOptions - available { value, label } options.
    • fkLoading - whether options are still loading.
    • onOpen - invoked when the dropdown opens (triggers lazy load).

    Parameters

    • __namedParameters: Props

    Returns Element