Skip to content

Commit 5d4c8ed

Browse files
committed
docs(cdk/menu): fix wrong example name (#24985)
Fixes that the docs were referring to an example that was renamed. (cherry picked from commit 939d250)
1 parent c26bfc7 commit 5d4c8ed

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/cdk/menu/menu.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ menu directives to build your custom menu. A typical menu consists of the follow
4949
- `cdkMenuItem` - added to each item in the menu
5050

5151
<!-- example({
52-
"example": "cdk-menu-standalone-trigger",
53-
"file": "cdk-menu-standalone-trigger-example.html"
52+
"example": "cdk-menu-standalone-menu",
53+
"file": "cdk-menu-standalone-menu-example.html"
5454
}) -->
5555

5656
Most menu interactions consist of two parts: a trigger and a menu panel.
@@ -62,14 +62,14 @@ item to make it a trigger for a submenu. When adding this directive, be sure to
6262
the template containing the menu it should open. Users can toggle the associated menu using a mouse
6363
or keyboard.
6464

65-
<!-- example({"example":"cdk-menu-standalone-trigger",
66-
"file":"cdk-menu-standalone-trigger-example.html",
65+
<!-- example({"example":"cdk-menu-standalone-menu",
66+
"file":"cdk-menu-standalone-menu-example.html",
6767
"region":"trigger"}) -->
6868

6969
When creating a submenu trigger, add both `cdkMenuItem` and `cdkMenuTriggerFor` like so,
7070

7171
<!-- example({"example":"cdk-menu-menubar",
72-
"file":"cdk-menu-menubar-example.html",
72+
"file":"cdk-menu-menubar-example.html",
7373
"region":"file-trigger"}) -->
7474

7575
#### Menu content
@@ -154,13 +154,13 @@ The `cdkMenuItem` directive allows users to navigate menu items via keyboard.
154154
You can add a custom action to a menu item with the `cdkMenuItemTriggered` output.
155155

156156
<!-- example({"example":"cdk-menu-standalone-stateful-menu",
157-
"file":"cdk-menu-standalone-stateful-menu-example.html",
157+
"file":"cdk-menu-standalone-stateful-menu-example.html",
158158
"region":"reset-item"}) -->
159159

160160
You can create nested menus by using a menu item as the trigger for another menu.
161161

162162
<!-- example({"example":"cdk-menu-menubar",
163-
"file":"cdk-menu-menubar-example.html",
163+
"file":"cdk-menu-menubar-example.html",
164164
"region":"file-trigger"}) -->
165165

166166
#### Menu Item Checkboxes
@@ -174,7 +174,7 @@ Checkbox items do not track their own state. You must bind the checked state usi
174174
don't bind the state it will reset when the menu is closed and re-opened.
175175

176176
<!-- example({"example":"cdk-menu-standalone-stateful-menu",
177-
"file":"cdk-menu-standalone-stateful-menu-example.html",
177+
"file":"cdk-menu-standalone-stateful-menu-example.html",
178178
"region":"bold-item"}) -->
179179

180180
#### Menu Item Radios
@@ -188,7 +188,7 @@ As with checkbox items, radio items do not track their own state, but you can tr
188188
selection will reset when the menu is closed and reopened.
189189

190190
<!-- example({"example":"cdk-menu-standalone-stateful-menu",
191-
"file":"cdk-menu-standalone-stateful-menu-example.html",
191+
"file":"cdk-menu-standalone-stateful-menu-example.html",
192192
"region":"size-items"}) -->
193193

194194
#### Groups

0 commit comments

Comments
 (0)