Add TextType property (#16421)

This commit is contained in:
Charles Gagnon
2021-07-26 13:10:17 -07:00
committed by GitHub
parent 70fc6bd43d
commit a0f56890b5
6 changed files with 60 additions and 3 deletions

View File

@@ -1377,6 +1377,13 @@ class TextComponentWrapper extends ComponentWrapper implements azdata.TextCompon
public set headingLevel(headingLevel: azdata.HeadingLevel | undefined) {
this.setProperty('headingLevel', headingLevel);
}
public get textType(): azdata.TextType | undefined {
return this.properties['textType'];
}
public set textType(type: azdata.TextType | undefined) {
this.setProperty('textType', type);
}
}
class ImageComponentWrapper extends ComponentWithIconWrapper implements azdata.ImageComponentProperties {

View File

@@ -610,7 +610,8 @@ export function createAdsApiFactory(accessor: ServicesAccessor): IAdsExtensionAp
ColumnSizingMode: sqlExtHostTypes.ColumnSizingMode,
DatabaseEngineEdition: sqlExtHostTypes.DatabaseEngineEdition,
TabOrientation: sqlExtHostTypes.TabOrientation,
sqlAssessment
sqlAssessment,
TextType: sqlExtHostTypes.TextType
};
}
};

View File

@@ -887,3 +887,8 @@ export enum ButtonType {
Normal = 'Normal',
Informational = 'Informational'
}
export enum TextType {
Normal = 'Normal',
Error = 'Error'
}