mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Improved chart names for chart type dropdown. (#7631)
* isolated problem involving user friendly names * Fix to handle horizontalBar * Working rough version, need to implement data structure to store alternative names later * consolidated checks into its own static method, data structure still highly recommended to implement * Version with hashMap implemented
This commit is contained in:
@@ -49,6 +49,7 @@ export class ChartView extends Disposable implements IPanelView {
|
||||
type: ChartType.Bar
|
||||
};
|
||||
|
||||
|
||||
/** parent container */
|
||||
private container: HTMLElement;
|
||||
/** container for the options controls */
|
||||
@@ -276,6 +277,7 @@ export class ChartView extends Disposable implements IPanelView {
|
||||
};
|
||||
break;
|
||||
case ControlType.combo:
|
||||
|
||||
let dropdown = new SelectBox(option.displayableOptions || option.options, undefined, this._contextViewService);
|
||||
dropdown.select(option.options.indexOf(value));
|
||||
dropdown.render(optionContainer);
|
||||
|
||||
Reference in New Issue
Block a user