mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
Add width and css options for TableColumn (#3893)
This commit is contained in:
@@ -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>>{
|
||||
|
||||
9
src/sql/parts/modelComponents/table.css
Normal file
9
src/sql/parts/modelComponents/table.css
Normal 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;
|
||||
}
|
||||
2
src/sql/sqlops.proposed.d.ts
vendored
2
src/sql/sqlops.proposed.d.ts
vendored
@@ -497,6 +497,8 @@ declare module 'sqlops' {
|
||||
|
||||
export interface TableColumn {
|
||||
value: string;
|
||||
width?: number;
|
||||
cssClass?: string;
|
||||
}
|
||||
|
||||
export interface TableComponentProperties extends ComponentProperties {
|
||||
|
||||
Reference in New Issue
Block a user