Add readOnly property to InputBoxComponent (#10687)

This commit is contained in:
Brian Bergeron
2020-06-03 14:59:54 -07:00
committed by GitHub
parent 5d60254bb9
commit 65a31de166
3 changed files with 11 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ export class InputKeyValue extends KeyValue {
getValueComponent(modelBuilder: azdata.ModelBuilder): azdata.Component {
const container = modelBuilder.flexContainer().withLayout({ alignItems: 'center' }).component();
container.addItem(modelBuilder.inputBox().withProperties<azdata.InputBoxProperties>({
value: this.value // TODO: Add a readOnly property to input boxes
value: this.value, readOnly: true
}).component());
const copy = modelBuilder.button().withProperties<azdata.ButtonProperties>({