From ad8e7c357a07d4d2d1b2484990e830beff52e90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 17 Nov 2021 16:10:49 +0300 Subject: [PATCH] menu events added to docs --- api-generator/components/menu.js | 12 ++++++++++++ src/views/menu/MenuDoc.vue | 25 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/api-generator/components/menu.js b/api-generator/components/menu.js index 9116b4e47..eb53f3637 100644 --- a/api-generator/components/menu.js +++ b/api-generator/components/menu.js @@ -37,6 +37,17 @@ const MenuProps = [ } ]; +const MenuEvents = [ + { + name: "show", + description: "Callback to invoke when the overlay is shown." + }, + { + name: "hide", + description: "Callback to invoke when the overlay is hidden." + } +]; + const MenuSlots = [ { name: "item", @@ -49,6 +60,7 @@ module.exports = { name: "Menu", description: "Menu is a navigation / command component that supports dynamic and static positioning.", props: MenuProps, + events: MenuEvents, slots: MenuSlots } }; diff --git a/src/views/menu/MenuDoc.vue b/src/views/menu/MenuDoc.vue index 7c40b2f13..09aedc574 100755 --- a/src/views/menu/MenuDoc.vue +++ b/src/views/menu/MenuDoc.vue @@ -199,6 +199,31 @@ toggle(event) { +
Events
+
+ + + + + + + + + + + + + + + + + + + + +
NameParametersDescription
show-Callback to invoke when the overlay is shown.
hide-Callback to invoke when the overlay is hidden.
+
+
Slots