ListOptions
Less than 1 minute
Options for configuring the list display in the OutputUI
class.
Example
const listOptions: ListOptions = {
title: 'My List',
border: 'single',
padding: 2,
colorizeTitle: str => `\x1b[32m${str}\x1b[0m`,
colorizeBorder: str => `\x1b[34m${str}\x1b[0m`,
colorizeItem: str => `\x1b[36m${str}\x1b[0m`,
};
Properties
Property | Type | Description |
---|---|---|
keyof | The type of border to use. | |
( | Function to colorize the border. | |
( | Function to colorize the list items. | |
( | Function to colorize the title text. | |
| The padding around the list items. | |
| The title of the list. |