import { GenericList } from "https://deno.land/x/cliffy@v0.16.0/prompt/mod.ts";
Generic list prompt representation.
Methods
protected
body(): string | undefined | Promise<string | undefined>Render options.
protected
getListHeight(): numberGet options row height.
protected
abstract
getListItem(item: GenericListOptionSettings, isSelected?: boolean): stringRender option.
protected
getOptionByValue(value: string): GenericListOptionSettings | undefinedFind option by value.
protected
read(): Promise<boolean>Read user input.
protected
selectNext(): voidSelect next option.
protected
selectPrevious(): voidSelect previous option.
Static Methods
protected
mapOption(option: GenericListOption): GenericListOptionSettingsSet list option defaults.
separator(label?): GenericListOption
Create list separator.