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

@@ -580,12 +580,24 @@ declare module 'azdata' {
*/
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
/**
* The type of text this is - used to determine display color.
*/
export enum TextType {
Normal = 'Normal',
Error = 'Error'
}
export interface TextComponentProperties {
/**
* The heading level for this component - if set the text component will be created as an h#
* HTML element with this value being the #.
*/
headingLevel?: HeadingLevel;
/**
* The type to display the text as - used to determine the color of the text. Default is Normal.
*/
textType?: TextType;
}
export namespace nb {