mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Add parts to Et2DropdownButton for CSS
This commit is contained in:
parent
caa05ae2af
commit
087a35d72e
@ -108,18 +108,18 @@ export class Et2DropdownButton extends Et2WidgetWithSelectMixin(LitElement)
|
||||
}
|
||||
return html`
|
||||
<sl-button-group>
|
||||
<sl-button size="${egwIsMobile() ? "large" : "medium"}" id="main"
|
||||
<sl-button size="${egwIsMobile() ? "large" : "medium"}" id="main" part="main"
|
||||
?disabled=${this.disabled}
|
||||
@click=${this._handleClick}
|
||||
>
|
||||
${this.label}
|
||||
</sl-button>
|
||||
<sl-dropdown placement="bottom-end" hoist>
|
||||
<sl-dropdown placement="bottom-end" hoist part="dropdown">
|
||||
<slot name="trigger" slot="trigger">
|
||||
<sl-button size="${egwIsMobile() ? "large" : "medium"}" slot="trigger" caret
|
||||
<sl-button part="trigger" size="${egwIsMobile() ? "large" : "medium"}" slot="trigger" caret
|
||||
?disabled=${this.disabled}></sl-button>
|
||||
</slot>
|
||||
<sl-menu @sl-select=${this._handleSelect}>
|
||||
<sl-menu @sl-select=${this._handleSelect} part="menu">
|
||||
${(this.select_options || []).map((option : SelectOption) => this._optionTemplate(option))}
|
||||
</sl-menu>
|
||||
</sl-dropdown>
|
||||
|
Loading…
Reference in New Issue
Block a user