mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 20:36:35 +00:00
Added forceLTR attribute on a column in ha-data-table (#6363)
This commit is contained in:
parent
7d1835e59c
commit
b2a78fd063
@ -69,6 +69,7 @@ export interface DataTableColumnData extends DataTableSortColumnData {
|
|||||||
width?: string;
|
width?: string;
|
||||||
maxWidth?: string;
|
maxWidth?: string;
|
||||||
grows?: boolean;
|
grows?: boolean;
|
||||||
|
forceLTR?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DataTableRowData {
|
export interface DataTableRowData {
|
||||||
@ -352,6 +353,7 @@ export class HaDataTable extends LitElement {
|
|||||||
column.type === "icon-button"
|
column.type === "icon-button"
|
||||||
),
|
),
|
||||||
grows: Boolean(column.grows),
|
grows: Boolean(column.grows),
|
||||||
|
forceLTR: Boolean(column.forceLTR),
|
||||||
})}"
|
})}"
|
||||||
style=${column.width
|
style=${column.width
|
||||||
? styleMap({
|
? styleMap({
|
||||||
@ -855,6 +857,9 @@ export class HaDataTable extends LitElement {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
}
|
}
|
||||||
|
.forceLTR {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,7 @@ export class HaConfigLovelaceRescources extends LitElement {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
direction: "asc",
|
direction: "asc",
|
||||||
grows: true,
|
grows: true,
|
||||||
|
forceLTR: true,
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
title: this.hass.localize(
|
title: this.hass.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user