Skip to content

Commit 96aafbe

Browse files
authored
Update application-menu.md
1 parent 1c8e8b0 commit 96aafbe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

resources/views/docs/1/the-basics/application-menu.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,17 @@ In some cases, your app may not require a preferences panel, and a few interacti
299299
your user to configure some settings. Or you may wish to make certain commonly-used settings more readily accessible.
300300

301301
Checkbox and Radio items enable you to create menu items for just these purposes. They operate in a very similar way
302-
to checkboxes and radio buttons in a web form.
302+
to checkboxes and radio buttons in a web form. Their default state is 'unchecked'.
303303

304304
You may use the `Menu::checkbox()` and `Menu::radio()` methods to create such items, passing the initial state of the
305-
item to the `checked` parameter (the default state is 'unchecked'):
305+
item to the `checked` parameter or using the `checked()` chainable method:
306306

307307
```php
308308
Menu::checkbox('Word wrap', checked: true);
309+
310+
// Or
311+
312+
Menu::checkbox('Word wrap')->checked();
309313
```
310314

311315
When Checkbox and Radio items are triggered, the click event data will indicate whether or not the item is currently

0 commit comments

Comments
 (0)