Merge branch 'master' of https://github.com/primefaces/primevue
commit
5e8e1e799d
|
@ -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 = [
|
const MenuSlots = [
|
||||||
{
|
{
|
||||||
name: "item",
|
name: "item",
|
||||||
|
@ -49,6 +60,7 @@ module.exports = {
|
||||||
name: "Menu",
|
name: "Menu",
|
||||||
description: "Menu is a navigation / command component that supports dynamic and static positioning.",
|
description: "Menu is a navigation / command component that supports dynamic and static positioning.",
|
||||||
props: MenuProps,
|
props: MenuProps,
|
||||||
|
events: MenuEvents,
|
||||||
slots: MenuSlots
|
slots: MenuSlots
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -327,9 +327,12 @@ export default {
|
||||||
|
|
||||||
if (!this.$attrs.disabled) {
|
if (!this.$attrs.disabled) {
|
||||||
this.initFocusableCell();
|
this.initFocusableCell();
|
||||||
|
|
||||||
|
if (this.numberOfMonths === 1) {
|
||||||
this.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
|
this.overlay.style.width = DomHandler.getOuterWidth(this.$el) + 'px';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
updated() {
|
updated() {
|
||||||
if (this.overlay) {
|
if (this.overlay) {
|
||||||
|
|
|
@ -168,6 +168,31 @@ toggle(event) {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h5>Events</h5>
|
||||||
|
<div class="doc-tablewrapper">
|
||||||
|
<table class="doc-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Parameters</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>show</td>
|
||||||
|
<td>-</td>
|
||||||
|
<td>Callback to invoke when the overlay is shown.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>hide</td>
|
||||||
|
<td>-</td>
|
||||||
|
<td>Callback to invoke when the overlay is hidden.</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h5>Methods</h5>
|
<h5>Methods</h5>
|
||||||
<div class="doc-tablewrapper">
|
<div class="doc-tablewrapper">
|
||||||
<table class="doc-table">
|
<table class="doc-table">
|
||||||
|
|
Loading…
Reference in New Issue