mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
table component improvement (#13801)
* hyperlink column * fixed width for image only button - old behavior
This commit is contained in:
@@ -38,7 +38,7 @@ export interface HyperlinkCellValue {
|
||||
|
||||
export interface CssIconCellValue {
|
||||
iconCssClass: string,
|
||||
ariaLabel: string
|
||||
title: string
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ export function textFormatter(row: number | undefined, cell: any | undefined, va
|
||||
|
||||
export function iconCssFormatter(row: number | undefined, cell: any | undefined, value: any, columnDef: any | undefined, dataContext: any | undefined): string {
|
||||
if (isCssIconCellValue(value)) {
|
||||
return `<div role='image' aria-label="${escape(value.ariaLabel)}" class="grid-cell-value-container icon codicon slick-icon-cell-content ${value.iconCssClass}"></div>`;
|
||||
return `<div role="image" title="${escape(value.title)}" aria-label="${escape(value.title)}" class="grid-cell-value-container icon codicon slick-icon-cell-content ${value.iconCssClass}"></div>`;
|
||||
}
|
||||
return textFormatter(row, cell, value, columnDef, dataContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user