fixed documentation for selection and multiselection (#499)

This commit is contained in:
Nils Andresen 2021-10-13 22:50:49 +02:00 committed by Patrik Svensson
parent c5c1852fc3
commit b3ef7d4fa6
2 changed files with 2 additions and 4 deletions

View File

@ -29,9 +29,8 @@ var fruits = AnsiConsole.Prompt(
.InstructionsText(
"[grey](Press [blue]<space>[/] to toggle a fruit, " +
"[green]<enter>[/] to accept)[/]")
.AddChoice("Apple")
.AddChoices(new[] {
"Apricot", "Avocado",
"Apple", "Apricot", "Avocado",
"Banana", "Blackcurrant", "Blueberry",
"Cherry", "Cloudberry", "Cocunut",
}));

View File

@ -22,9 +22,8 @@ var fruit = AnsiConsole.Prompt(
.Title("What's your [green]favorite fruit[/]?")
.PageSize(10)
.MoreChoicesText("[grey](Move up and down to reveal more fruits)[/]")
.AddChoice("Apple")
.AddChoices(new[] {
"Apricot", "Avocado",
"Apple", "Apricot", "Avocado",
"Banana", "Blackcurrant", "Blueberry",
"Cherry", "Cloudberry", "Cocunut",
}));