Skip to content

Commit 001fbe5

Browse files
committed
refactor(table.type): Partial attributes
1 parent b5b2d7f commit 001fbe5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

projects/coreui-angular/src/lib/table/table.type.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export interface ITable {
5252
* @type boolean
5353
*/
5454
striped?: boolean | string;
55-
attributes?: { [key: string]: any };
55+
56+
attributes?: Partial<HTMLTableElement>;
5657
}
5758

5859
export interface ITableElementProps {
@@ -66,7 +67,9 @@ export interface ITableElementProps {
6667
* @type Colors
6768
*/
6869
color?: Colors;
69-
_attributes?: { [key: string]: any };
70+
71+
/** @deprecated */
72+
_attributes?: Partial<HTMLTableElement>;
7073
}
7174

7275
export interface ITableRowCellProps extends ITableElementProps {
@@ -75,4 +78,7 @@ export interface ITableRowCellProps extends ITableElementProps {
7578
@type boolean
7679
*/
7780
active?: boolean;
81+
82+
/** @deprecated */
83+
_attributes?: Partial<HTMLTableCellElement> | Partial<HTMLTableRowElement>;
7884
}

0 commit comments

Comments
 (0)