Add graph icons to OE and TD (#18808)

* add graph icons to OE and TD

* PR comments

* change enum type

* change sub type to icon and make basic as default

* changed icontype to icon

* change default logic location

* change icon name to be more generic

* use right icons
This commit is contained in:
Aditya Bist
2022-04-01 00:27:59 -07:00
committed by GitHub
parent 27f014c70d
commit bab5118996
14 changed files with 205 additions and 13 deletions

View File

@@ -743,6 +743,11 @@ declare module 'azdata' {
* Extension can store additional information that the provider needs to uniquely identify a table.
*/
[key: string]: any;
/**
* Table icon type that's shown in the editor tab. Default is the basic
* table icon.
*/
tableIcon?: TableIcon;
}
/**
@@ -759,6 +764,16 @@ declare module 'azdata' {
viewModel: DesignerViewModel;
}
/**
* Table icon that's shown on the editor tab
*/
export enum TableIcon {
Basic = 'Basic',
Temporal = 'Temporal',
GraphNode = 'GraphNode',
GraphEdge = 'GraphEdge'
}
/**
* Name of the common table properties.
* Extensions can use the names to access the designer view model.