Add width and height properties to checkbox component (#7482)

This commit is contained in:
Charles Gagnon
2019-10-02 16:21:08 -07:00
committed by GitHub
parent e0a867a184
commit 08b78c3ca5
2 changed files with 15 additions and 1 deletions

View File

@@ -100,6 +100,14 @@ export class Checkbox extends Widget {
this.enabled = true;
}
public setHeight(value: string) {
this._el.style.height = value;
}
public setWidth(value: string) {
this._el.style.width = value;
}
public style(styles: ICheckboxStyles): void {
this.disabledCheckboxForeground = styles.disabledCheckboxForeground;
this.updateStyle();