Updated column definition to allow numbers
This commit is contained in:
parent
30267f11cd
commit
fd1a495cb9
@ -143,4 +143,4 @@ Exported As: `Column`
|
||||
| sort: boolean | Enable/Disable sorting |
|
||||
| sortFn: (a, b) => 1/0/-1 | Custom function to sort rows by |
|
||||
| template: TemplateRef<any> | Template to render row with |
|
||||
| width: string | CSS width property |
|
||||
| width: number/string | CSS width property |
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ztimson/ng-datatable",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"homepage": "https://github.com/ztimson/ng-datatable",
|
||||
"license": "Apache-2.0",
|
||||
"author": {
|
||||
|
@ -10,5 +10,5 @@ export interface Column {
|
||||
sort?: boolean; // Allow sorting
|
||||
sortFn?: (a: any, b: any) => 1 | 0 | -1; // Custom sorting function
|
||||
template?: TemplateRef<any>; // TemplateRef to render the column
|
||||
width?: string; // Width to give column
|
||||
width?: number | string; // Width to give column
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user