class ComboBox
extends Button
import { ComboBox } from "https://deno.land/x/tui@2.0.0/src/components/mod.ts";
Component for creating interactive combobox
Examples
Example 1
Example 1
new ComboBox({
parent: tui,
items: ["one", "two", "three", "four"],
placeholder: "choose number",
theme: {
base: crayon.bgGreen,
focused: crayon.bgLightGreen,
active: crayon.bgYellow,
},
rectangle: {
column: 1,
row: 1,
height: 1,
width: 14,
},
zIndex: 0,
});
Constructors
new
ComboBox(options: ComboBoxOptions<Items>)