Et2DropdownButton: Add trigger slot

This commit is contained in:
nathan 2024-08-08 13:58:05 -06:00
parent 9888a681e7
commit d99f74cbcc

View File

@ -115,8 +115,10 @@ export class Et2DropdownButton extends Et2WidgetWithSelectMixin(LitElement)
${this.label}
</sl-button>
<sl-dropdown placement="bottom-end" hoist>
<slot name="trigger" slot="trigger">
<sl-button size="${egwIsMobile() ? "large" : "medium"}" slot="trigger" caret
?disabled=${this.disabled}></sl-button>
</slot>
<sl-menu @sl-select=${this._handleSelect}>
${(this.select_options || []).map((option : SelectOption) => this._optionTemplate(option))}
</sl-menu>