buildField method presentation ✓ 100.0%

Last updated: 2026-03-04T23:21:38.385Z

Metrics

LOC: 18 Complexity: 1 Params: 1 Coverage: 100.0% (4/4 lines, 2x executed)

Signature

buildField(wrapper: HTMLElement): : FormField

Source Code

  buildField(wrapper: HTMLElement): FormField {
    const options = extractRadioOptions(wrapper);

    const field: FormField = {
      element: wrapper,
      selector: getAntdSelector(wrapper),
      category: "unknown",
      fieldType: "radio",
      adapterName: "antd-radio",
      label: findAntLabel(wrapper),
      id: findAntId(wrapper),
      required: isAntRequired(wrapper),
      options,
    };

    field.contextSignals = buildSignals(field);
    return field;
  },

Dependencies (Outgoing)

graph LR buildField["buildField"] extractRadioOptions["extractRadioOptions"] getAntdSelector["getAntdSelector"] findAntLabel["findAntLabel"] findAntId["findAntId"] isAntRequired["isAntRequired"] buildField -->|calls| extractRadioOptions buildField -->|calls| getAntdSelector buildField -->|calls| findAntLabel buildField -->|calls| findAntId buildField -->|calls| isAntRequired style buildField fill:#dbeafe,stroke:#2563eb,stroke-width:2px click buildField "0731bf36655a7ca8.html" click extractRadioOptions "1022a5863703a14b.html" click getAntdSelector "707eae1ed4437c8e.html" click findAntLabel "4446526a4a01afd7.html" click findAntId "5d7c366d4d585434.html" click isAntRequired "909385c51f5eb930.html"
TargetType
extractRadioOptions calls
getAntdSelector calls
findAntLabel calls
findAntId calls
isAntRequired calls

No incoming dependencies.