mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 17:23:21 -05:00
Add support for "More Actions" column in Resource Viewer (#13093)
* Add support for "More Actions" column in resource viewer * update provider * remove import * Use menu contribution and make actions column always show * cleanup * move context menu anchor * Comments
This commit is contained in:
@@ -16,6 +16,7 @@ export interface DBCellValue {
|
||||
*/
|
||||
export interface ExecuteCommandInfo {
|
||||
id: string;
|
||||
displayText?: string;
|
||||
args?: string[]
|
||||
}
|
||||
|
||||
@@ -49,7 +50,6 @@ export function isHyperlinkCellValue(obj: any | undefined): obj is HyperlinkCell
|
||||
return !!(<HyperlinkCellValue>obj)?.linkOrCommand;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Format xml field into a hyperlink and performs HTML entity encoding
|
||||
*/
|
||||
@@ -107,8 +107,7 @@ export function imageFormatter(row: number | undefined, cell: any | undefined, v
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide slick grid cell with encoded ariaLabel and plain text.
|
||||
* text will be escaped by the textFormatter and ariaLabel will be consumed by slickgrid directly.
|
||||
* Extracts the specified field into the expected object to be handled by SlickGrid and/or formatters as needed.
|
||||
*/
|
||||
export function slickGridDataItemColumnValueExtractor(value: any, columnDef: any): TextCellValue | HyperlinkCellValue {
|
||||
let fieldValue = value[columnDef.field];
|
||||
@@ -123,7 +122,6 @@ export function slickGridDataItemColumnValueExtractor(value: any, columnDef: any
|
||||
ariaLabel: fieldValue ? escape(fieldValue) : fieldValue
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user