Closed loranger closed 2 years ago
You can construct an instance of PhpSchool\CliMenu\Builder\CheckboxItem
manually, call toggle
on it and then add it to the builder with addMenuItem
Feel free to reopen if you have any more questions
Ok, no shorthand for checkbox, got it. Thanks @AydinHassan
Hi,
I cannot figure out how I can pre-check a checkbox when building a menu. Is there a way to toggle some checkboxes on instanciation ?