mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Adding ability to style cells in slickgrid (#19195)
This commit is contained in:
@@ -126,13 +126,23 @@ export class ExecutionPlanPropertiesView extends ExecutionPlanPropertiesViewBase
|
||||
break;
|
||||
}
|
||||
|
||||
const parentRowCellStyling = 'font-weight: bold';
|
||||
|
||||
props.forEach((p, i) => {
|
||||
let row = {};
|
||||
rows.push(row);
|
||||
row['name'] = ' '.repeat(indent) + p.name;
|
||||
row['parent'] = parentIndex;
|
||||
if (!isString(p.value)) {
|
||||
row['value'] = removeLineBreaks(p.displayValue, ' ');
|
||||
// Styling values in the parent row differently to make them more apparent and standout compared to the rest of the cells.
|
||||
row['name'] = {
|
||||
text: row['name'],
|
||||
style: parentRowCellStyling
|
||||
};
|
||||
row['value'] = {
|
||||
text: removeLineBreaks(p.displayValue, ' '),
|
||||
style: parentRowCellStyling
|
||||
};
|
||||
this.convertModelToTableRows(p.value, rows.length - 1, indent + 2, rows);
|
||||
} else {
|
||||
row['value'] = removeLineBreaks(p.value, ' ');
|
||||
|
||||
Reference in New Issue
Block a user