mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Add multiple ModelView child items at once (#14047)
This commit is contained in:
@@ -91,7 +91,12 @@ export interface IComponent extends IDisposable {
|
||||
layout(): void;
|
||||
registerEventHandler(handler: (event: IComponentEventArgs) => void): IDisposable;
|
||||
clearContainer?: () => void;
|
||||
addToContainer?: (componentDescriptor: IComponentDescriptor, config: any, index?: number) => void;
|
||||
/**
|
||||
* Called when child components are added to this component
|
||||
* @param items The list of items to add. Each item consists of a descriptor for identifying the component,
|
||||
* the config defined and an optional index to insert it at
|
||||
*/
|
||||
addToContainer?: (items: { componentDescriptor: IComponentDescriptor, config: any, index?: number }[]) => void;
|
||||
removeFromContainer?: (componentDescriptor: IComponentDescriptor) => void;
|
||||
setLayout?: (layout: any) => void;
|
||||
setItemLayout?: (componentDescriptor: IComponentDescriptor, config: any) => void;
|
||||
|
||||
@@ -33,7 +33,12 @@ export interface IModelViewEventArgs extends IComponentEventArgs {
|
||||
export interface IModelView extends IView {
|
||||
initializeModel(rootComponent: IComponentShape, validationCallback?: (componentId: string) => Thenable<boolean>): void;
|
||||
clearContainer(componentId: string): void;
|
||||
addToContainer(containerId: string, item: IItemConfig, index?: number): void;
|
||||
/**
|
||||
* Adds the specified items as children of the specified parent container
|
||||
* @param containerId The ID of the container component to add the items to
|
||||
* @param items The list of items to add to the container
|
||||
*/
|
||||
addToContainer(containerId: string, items: { itemConfig: IItemConfig, index?: number }[]): void;
|
||||
removeFromContainer(containerId: string, item: IItemConfig): void;
|
||||
setLayout(componentId: string, layout: any, initial?: boolean): void;
|
||||
setItemLayout(componentId: string, item: IItemConfig): void;
|
||||
|
||||
Reference in New Issue
Block a user