Add width and css options for TableColumn (#3893)

This commit is contained in:
kisantia
2019-02-02 19:27:35 -08:00
committed by GitHub
parent a6defd9b62
commit a62393e0ed
3 changed files with 16 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import 'vs/css!./table';
import {
Component, Input, Inject, ChangeDetectorRef, forwardRef, ViewChild, ElementRef, OnDestroy, AfterViewInit
} from '@angular/core';
@@ -53,7 +55,9 @@ export default class TableComponent extends ComponentBase implements IComponent,
return <Slick.Column<any>>{
name: col.value,
id: col.value,
field: col.value
field: col.value,
width: col.width,
cssClass: col.cssClass
};
} else {
return <Slick.Column<any>>{

View File

@@ -0,0 +1,9 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.center-align
{
text-align: center;
}

View File

@@ -497,6 +497,8 @@ declare module 'sqlops' {
export interface TableColumn {
value: string;
width?: number;
cssClass?: string;
}
export interface TableComponentProperties extends ComponentProperties {