我想向用户显示一个建议列表,正如预期的那样:
new Suggestions('option 1', 'option 2', 'option 3', '...');
但问题是,这种方式的建议显示在一行,用户将不得不做横向滚动,以达到所有的建议。
相反,我更喜欢在表视图中组织建议,以便有多行。
new Table({
dividers: true,
columns: ['header 1', 'header 2', 'header 3'],
rows: [
[new Suggestions('opt 1-1'), new Suggestions('opt 1-2'), new Suggestions('opt 1-3')],
[new Suggestions('opt 2-1'), new Suggestions('opt 2-2'), new Suggestions('opt 2-3')],
]
})