Skip to content

Commit

Permalink
Merge branch 'prod'
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 8, 2023
2 parents c03870d + 355fb80 commit 4ccae27
Show file tree
Hide file tree
Showing 7 changed files with 573 additions and 1,115 deletions.
7 changes: 3 additions & 4 deletions components/lib/megamenu/style/MegaMenuStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const css = `
@layer primevue {
.p-megamenu {
display: flex;
position: relative;
}
.p-megamenu-root-list {
Expand All @@ -12,10 +13,6 @@ const css = `
list-style: none;
}
.p-megamenu-root-list > .p-menuitem {
position: relative;
}
.p-megamenu .p-menuitem-link {
cursor: pointer;
display: flex;
Expand All @@ -34,6 +31,8 @@ const css = `
position: absolute;
width: auto;
z-index: 1;
left: 0;
min-width: 100%;
}
.p-megamenu-root-list > .p-menuitem-active > .p-megamenu-panel {
Expand Down
320 changes: 130 additions & 190 deletions doc/megamenu/BasicDoc.vue

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions doc/megamenu/CommandDoc.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<DocSectionText v-bind="$attrs">
<p>The <i>command</i> property of a menuitem defines the callback to run when an item is activated by click or a key event.</p>
</DocSectionText>
<DocSectionCode :code="code" importCode hideToggleCode hideStackBlitz hideCodeSandbox />
</template>

<script>
export default {
data() {
return {
code: {
basic: `
{
label: 'Log out',
icon: 'pi pi-signout',
command: () => {
// Callback to run
}
}
`
}
};
}
};
</script>
Loading

0 comments on commit 4ccae27

Please sign in to comment.