Feature/schemacompare include exclude checkboxes (#5548)

* Adding include exclude boxes

* Adding as table component generic column and rememebering state.

* converged custome action and select checkboxes, moved sc checkbox to middle, can have multiple checkboxes and can remember state now

* adding action on column as a common column property

* Taking PR comments

* Changing Arg name as per CR comment

* Taking a PR comment
This commit is contained in:
udeeshagautam
2019-05-22 13:53:50 -07:00
committed by GitHub
parent 2e0756ad8d
commit 2d7eb0dcb5
8 changed files with 293 additions and 17 deletions

View File

@@ -3126,6 +3126,26 @@ declare module 'azdata' {
cssClass?: string;
headerCssClass?: string;
toolTip?: string;
type?: ColumnType;
options?: CheckboxColumnOption | TextColumnOption;
}
export enum ColumnType {
text = 0,
checkBox = 1,
button = 2
}
export interface CheckboxColumnOption {
actionOnCheckbox: ActionOnCellCheckboxCheck;
}
export interface TextColumnOption {
}
export enum ActionOnCellCheckboxCheck {
selectRow = 0,
customAction = 1
}
export interface TableComponentProperties extends ComponentProperties {
@@ -3327,8 +3347,19 @@ declare module 'azdata' {
onRowSelected: vscode.Event<any>;
}
export interface ICheckboxCellActionEventArgs extends ICellActionEventArgs {
checked: boolean;
}
interface ICellActionEventArgs {
row: number;
column: number;
columnName: number;
}
export interface TableComponent extends Component, TableComponentProperties {
onRowSelected: vscode.Event<any>;
onCellAction?: vscode.Event<ICellActionEventArgs>;
}
export interface FileBrowserTreeComponent extends Component, FileBrowserTreeProperties {