Updated column definition to allow numbers

This commit is contained in:
Zakary Timson 2018-06-26 21:23:42 -04:00
parent 30267f11cd
commit fd1a495cb9
3 changed files with 3 additions and 3 deletions

View File

@ -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 |

View File

@ -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": {

View File

@ -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
}