Skip to content

Commit 0534011

Browse files
committed
minor #16965 [Console] Add Multiselect to choice() (alexandre-daubois)
This PR was merged into the 6.2 branch. Discussion ---------- [Console] Add Multiselect to choice() Resolves #16963 Commits ------- 33d4a86 [Console] Add Multiselect to choice()
2 parents 7066efe + 33d4a86 commit 0534011

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

console/style.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@ User Input Methods
324324

325325
$io->choice('Select the queue to analyze', ['queue1', 'queue2', 'queue3'], 'queue1');
326326

327+
Finally, you can specify that user can select multiple choices. User must
328+
separate each choice with a comma (e.g. typing ``1, 2`` will select choice 1
329+
and 2)::
330+
331+
$io->choice('Select the queue to analyze', ['queue1', 'queue2', 'queue3'], multiSelect: true);
332+
327333
Result Methods
328334
~~~~~~~~~~~~~~
329335

0 commit comments

Comments
 (0)