Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/question/checkbox.ts>CheckboxOptions

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface CheckboxOptions
import { type CheckboxOptions } from "https://deno.land/x/netzo@0.5.107/deps/question/checkbox.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