{
  "name": "ComboBox",
  "component": "gui",
  "header": "nativeui/combo_box.h",
  "type": "Class",
  "namespace": "nu",
  "inherit": {
    "name": "Picker",
    "id": "picker"
  },
  "description": "Choose a single item from a list of items or type a custom value.",
  "detail": "The `ComboBox` behaves differently from `Picker` that:\n1. no item is selected by default;\n2. duplicate items are allowed.\n",
  "class_methods": [
    {
      "signature": {
        "returnType": {
          "name": "ComboBox",
          "id": "combobox"
        },
        "name": "create",
        "parameters": [],
        "shortStr": "create()",
        "str": "create()"
      },
      "description": "Create a new `ComboBox` view.",
      "id": "create"
    }
  ],
  "methods": [
    {
      "signature": {
        "name": "settext",
        "parameters": [
          {
            "type": {
              "name": "string"
            },
            "name": "text"
          }
        ],
        "shortStr": "settext(text)",
        "str": "settext(text)"
      },
      "description": "Change the text in the view.",
      "id": "settext-text"
    },
    {
      "signature": {
        "returnType": {
          "name": "string"
        },
        "name": "gettext",
        "parameters": [],
        "shortStr": "gettext()",
        "str": "gettext()"
      },
      "description": "Return currently displayed text.",
      "id": "gettext"
    }
  ],
  "events": [
    {
      "signature": {
        "name": "ontextchange",
        "parameters": [
          {
            "type": {
              "name": "Entry",
              "id": "entry"
            },
            "name": "self"
          }
        ],
        "shortStr": "ontextchange(self)",
        "str": "ontextchange(self)"
      },
      "description": "Emitted when user has changed text.",
      "id": "ontextchange-self"
    }
  ],
  "module": "yue.gui",
  "id": "combobox"
}