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

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