mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add PropertiesContainer ModelView component (#10115)
* Add PropertiesContainer ModelView component * Switch to component * Remove unneeded interface * Update names * Fix names
This commit is contained in:
36
src/sql/azdata.proposed.d.ts
vendored
36
src/sql/azdata.proposed.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user