Add PropertiesContainer ModelView component (#10115)

* Add PropertiesContainer ModelView component

* Switch to component

* Remove unneeded interface

* Update names

* Fix names
This commit is contained in:
Charles Gagnon
2020-04-22 16:29:46 -07:00
committed by GitHub
parent 9d1b99f1d3
commit 8311c3985d
9 changed files with 146 additions and 6 deletions

View File

@@ -129,6 +129,7 @@ declare module 'azdata' {
radioCardGroup(): ComponentBuilder<RadioCardGroupComponent>;
tabbedPanel(): TabbedPanelComponentBuilder;
separator(): ComponentBuilder<SeparatorComponent>;
propertiesContainer(): ComponentBuilder<PropertiesContainerComponent>;
}
export interface RadioCard {
@@ -305,6 +306,41 @@ declare module 'azdata' {
required?: boolean;
}
/**
* A property to be displayed in the PropertiesContainerComponent
*/
export interface PropertiesContainerItem {
/**
* The name of the property to display
*/
displayName: string;
/**
* The value of the property to display
*/
value: string;
}
/**
* Component to display a list of property values.
*/
export interface PropertiesContainerComponent extends Component, PropertiesContainerComponentProperties {
}
/**
* Properties for configuring a PropertiesContainerComponent
*/
export interface PropertiesContainerComponentProperties {
/**
* The properties to display
*/
propertyItems?: PropertiesContainerItem[];
/**
* Whether the component is currently loading
*/
loading?: boolean;
}
export namespace nb {
/**
* An event that is emitted when the active Notebook editor is changed.