mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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.
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import 'vs/css!./table';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Component, Input, Inject, ChangeDetectorRef, forwardRef, ViewChild, ElementRef, OnDestroy, AfterViewInit
|
Component, Input, Inject, ChangeDetectorRef, forwardRef, ViewChild, ElementRef, OnDestroy, AfterViewInit
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
@@ -53,7 +55,9 @@ export default class TableComponent extends ComponentBase implements IComponent,
|
|||||||
return <Slick.Column<any>>{
|
return <Slick.Column<any>>{
|
||||||
name: col.value,
|
name: col.value,
|
||||||
id: col.value,
|
id: col.value,
|
||||||
field: col.value
|
field: col.value,
|
||||||
|
width: col.width,
|
||||||
|
cssClass: col.cssClass
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return <Slick.Column<any>>{
|
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 {
|
export interface TableColumn {
|
||||||
value: string;
|
value: string;
|
||||||
|
width?: number;
|
||||||
|
cssClass?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TableComponentProperties extends ComponentProperties {
|
export interface TableComponentProperties extends ComponentProperties {
|
||||||
|
|||||||
Reference in New Issue
Block a user