Export "error-message" part

This commit is contained in:
trading_peter 2025-01-07 21:44:05 +01:00
parent 11a06bb073
commit 1951d9bbba

View File

@ -49,7 +49,7 @@ class TpNumberInput extends FormElement(EventHelpers(DomQuery(LitElement))) {
const { disabled, invalid, errorMessage, required, autofocus, _internValue } = this; const { disabled, invalid, errorMessage, required, autofocus, _internValue } = this;
return html` return html`
<tp-input id="input" exportparts="wrap" .disabled=${disabled} .invalid=${invalid} .value=${_internValue} .autofocus=${autofocus} .errorMessage=${errorMessage} .required=${required}> <tp-input id="input" exportparts="wrap, error-message" .disabled=${disabled} .invalid=${invalid} .value=${_internValue} .autofocus=${autofocus} .errorMessage=${errorMessage} .required=${required}>
<div slot="prefix"> <div slot="prefix">
<tp-icon id="sub" part="icons" .icon=${this.decreaseIcon || TpNumberInput.defaultDecreaseIcon} .tooltip=${this.decreaseTooltip}></tp-icon> <tp-icon id="sub" part="icons" .icon=${this.decreaseIcon || TpNumberInput.defaultDecreaseIcon} .tooltip=${this.decreaseTooltip}></tp-icon>
</div> </div>