Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/deps/question/mod.ts>ListOptions

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface ListOptions
Re-export
import { type ListOptions } from "https://deno.land/x/netzo@0.5.14/deps/question/mod.ts";

Properties

optional
windowSize: number

The maximum amount of items visible at one time.

Default: The amount of items passed in.

optional
moreContentPattern: string

The pattern to repeat for when there are more items either above or below the current globalThis.

Default: -

optional
noMoreContentPattern: string

The pattern to repeat for when there are no additional items either above or below the current globalThis.

Default: =

optional
offsetWindowScroll: boolean

Whether or not to offset the selected item while going through the item list. If there are more items above or below (if enabled) it will select the next to last or first of the window always leaving 1 item offset if more items are available.

Default: true

optional
filtering: Partial<TextFilteringOptions> | boolean

Should the options be able to be filtered.

With filtering enabled any key the user is inputting will go into a search field. The list will then filter the options by their label.

This option accepts an object for more granular control of the filtering and sorting of the results.

Default: false

optional
inline: Partial<InlineOptions> | boolean

Place all options on one line with a separator between.

When the inline mode is enabled the up and down actions are replaced with left and right.

Default: false