feature - trigger slot for Dropdown
parent
63b1d95667
commit
681b66f563
|
@ -283,6 +283,10 @@ const DividerSlots = [
|
|||
{
|
||||
name: "loader",
|
||||
description: "Custom content for the virtual scroller loader items"
|
||||
},
|
||||
{
|
||||
name: "trigger",
|
||||
description: "Custom content for the component's trigger"
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@ declare class Dropdown {
|
|||
empty: VNode[];
|
||||
content: VNode[];
|
||||
loader: VNode[];
|
||||
trigger: VNode[];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
</span>
|
||||
<i v-if="showClear && modelValue != null" class="p-dropdown-clear-icon pi pi-times" @click="onClearClick($event)"></i>
|
||||
<div class="p-dropdown-trigger" role="button" aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
||||
<slot name="trigger">
|
||||
<span :class="dropdownIconClass"></span>
|
||||
</slot>
|
||||
</div>
|
||||
<Teleport :to="appendTarget" :disabled="appendDisabled">
|
||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||
|
|
|
@ -438,6 +438,10 @@ export default {
|
|||
<tr>
|
||||
<td>loader</td>
|
||||
<td>options: Options of the loader items for virtualscroller</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>trigger</td>
|
||||
<td>-</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue