AnyBox icon indicating copy to clipboard operation
AnyBox copied to clipboard

Order of prompt groups

Open Cambysses opened this issue 5 years ago • 2 comments

Is there a way to change the order of prompt groups? It seems like by default they're sorted alphabetically, is there a way to specify how you'd like them ordered?

For example,

$Box.Prompts =
@(
    New-AnyBoxPrompt -Group "Z" -InputType Text -Message "test"
    New-AnyBoxPrompt -Group "A" -InputType Text -Message "test"
)

Group "A" will show above group "Z" even though it's written afterwards.

Cambysses avatar Jul 30 '19 16:07 Cambysses

Not currently, but I'll look into adding the ability if time ever permits.

fresh2dev avatar Sep 20 '19 01:09 fresh2dev

This will be possible in the upcoming AnyBox v1.0 via the use of the new -Order parameter; e.g., New-Prompt -Order 1 ...

fresh2dev avatar Jun 19 '22 05:06 fresh2dev