mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 13:07:49 +00:00
Added search label support to ha-data-table
This commit is contained in:
parent
ba67b1291f
commit
cfa4c14108
@ -98,6 +98,8 @@ export class HaDataTable extends LitElement {
|
|||||||
|
|
||||||
@property({ type: String }) public noDataText?: string;
|
@property({ type: String }) public noDataText?: string;
|
||||||
|
|
||||||
|
@property({ type: String }) public searchLabel = "";
|
||||||
|
|
||||||
@property({ type: String }) public filter = "";
|
@property({ type: String }) public filter = "";
|
||||||
|
|
||||||
@internalProperty() private _filterable = false;
|
@internalProperty() private _filterable = false;
|
||||||
@ -202,6 +204,7 @@ export class HaDataTable extends LitElement {
|
|||||||
<div class="table-header">
|
<div class="table-header">
|
||||||
<search-input
|
<search-input
|
||||||
@value-changed=${this._handleSearchChange}
|
@value-changed=${this._handleSearchChange}
|
||||||
|
.label=${this.searchLabel}
|
||||||
></search-input>
|
></search-input>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user