mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Et2DropdownButton: Add trigger slot
This commit is contained in:
parent
9888a681e7
commit
d99f74cbcc
@ -115,8 +115,10 @@ export class Et2DropdownButton extends Et2WidgetWithSelectMixin(LitElement)
|
||||
${this.label}
|
||||
</sl-button>
|
||||
<sl-dropdown placement="bottom-end" hoist>
|
||||
<sl-button size="${egwIsMobile() ? "large" : "medium"}" slot="trigger" caret
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user