Skip to content

Commit 09030c6

Browse files
zappingmarcosmoura
authored andcommitted
[MdMenu]:Updated documentation with events in api section (vuematerial#1519)
Events info added to "API section" of md-menu doc
1 parent 9824c1e commit 09030c6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/app/pages/Components/Menu/Menu.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<api-item title="API - md-menu">
4444
<p>The following options can be used with any menu:</p>
4545
<api-table :headings="props.headings" :props="props.props" slot="props" />
46+
<api-table :headings="events.headings" :props="events.props" slot="events" />
4647
<note-block tip>All <a href="https://router.vuejs.org/en/api/router-link.html" target="_blank">options</a> of <code>router-link</code> can be simply used here.</note-block>
4748
</api-item>
4849
</div>
@@ -172,7 +173,22 @@
172173
defaults: '-'
173174
}
174175
]
175-
}
176+
},
177+
events: {
178+
headings: ['Name', 'Description', 'Value'],
179+
props: [
180+
{
181+
name: 'md-opened',
182+
description: 'Triggered when menu opens',
183+
value: 'null'
184+
},
185+
{
186+
name: 'md-closed',
187+
description: 'Triggered when menu closes',
188+
value: 'null'
189+
}
190+
]
191+
}
176192
})
177193
}
178194
</script>

0 commit comments

Comments
 (0)