Added search label support to ha-data-table

This commit is contained in:
Yosi Levy 2020-07-19 05:56:39 +03:00
parent ba67b1291f
commit cfa4c14108

View File

@ -98,6 +98,8 @@ export class HaDataTable extends LitElement {
@property({ type: String }) public noDataText?: string;
@property({ type: String }) public searchLabel = "";
@property({ type: String }) public filter = "";
@internalProperty() private _filterable = false;
@ -202,6 +204,7 @@ export class HaDataTable extends LitElement {
<div class="table-header">
<search-input
@value-changed=${this._handleSearchChange}
.label=${this.searchLabel}
></search-input>
</div>
`