feat(@lion/ui): add _invokerIconTemplate to LionInputDatepicker
This commit is contained in:
parent
adfa29a049
commit
1f018bafdf
2 changed files with 14 additions and 1 deletions
5
.changeset/stupid-emus-compete.md
Normal file
5
.changeset/stupid-emus-compete.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/ui': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(@lion/ui): add \_invokerIconTemplate to LionInputDatepicker
|
||||||
|
|
@ -279,11 +279,19 @@ export class LionInputDatepicker extends ScopedElementsMixin(
|
||||||
aria-label="${this.msgLit('lion-input-datepicker:openDatepickerLabel')}"
|
aria-label="${this.msgLit('lion-input-datepicker:openDatepickerLabel')}"
|
||||||
title="${this.msgLit('lion-input-datepicker:openDatepickerLabel')}"
|
title="${this.msgLit('lion-input-datepicker:openDatepickerLabel')}"
|
||||||
>
|
>
|
||||||
📅
|
${this._invokerIconTemplate()}
|
||||||
</button>
|
</button>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subclassers can replace this with their custom extension invoker icon
|
||||||
|
*/
|
||||||
|
// eslint-disable-next-line class-methods-use-this
|
||||||
|
_invokerIconTemplate() {
|
||||||
|
return html`📅`;
|
||||||
|
}
|
||||||
|
|
||||||
_setupOverlayCtrl() {
|
_setupOverlayCtrl() {
|
||||||
super._setupOverlayCtrl();
|
super._setupOverlayCtrl();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue