Add headingLevel to textComponent (#16320)

* Add headingLevel to textComponent

* fixes

* comment

* Add valid heading level check

* change check

* Heading level type

* one more
This commit is contained in:
Charles Gagnon
2021-07-19 19:32:39 -07:00
committed by GitHub
parent a7c6a98ad9
commit 3eefc70cbe
4 changed files with 61 additions and 16 deletions

View File

@@ -574,6 +574,19 @@ declare module 'azdata' {
onInput: vscode.Event<number>;
}
/**
* The heading levels an HTML heading element can be.
*/
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
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;
}
export namespace nb {
/**
* An event that is emitted when the active Notebook editor is changed.