mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Run initial modelview actions first (#13317)
* Run initial modelview actions first * add param * Comments and typings * Catch promise error * fix db projects test * remove extra calls
This commit is contained in:
@@ -69,7 +69,7 @@ export interface IModelStore {
|
||||
* @param componentId unique identifier of the component
|
||||
* @param action some action to perform
|
||||
*/
|
||||
eventuallyRunOnComponent<T>(componentId: string, action: (component: IComponent) => T): Promise<T>;
|
||||
eventuallyRunOnComponent<T>(componentId: string, action: (component: IComponent) => T, initial: boolean): void;
|
||||
/**
|
||||
* Register a callback that will validate components when given a component ID
|
||||
*/
|
||||
|
||||
@@ -35,12 +35,12 @@ export interface IModelView extends IView {
|
||||
clearContainer(componentId: string): void;
|
||||
addToContainer(containerId: string, item: IItemConfig, index?: number): void;
|
||||
removeFromContainer(containerId: string, item: IItemConfig): void;
|
||||
setLayout(componentId: string, layout: any): void;
|
||||
setLayout(componentId: string, layout: any, initial?: boolean): void;
|
||||
setItemLayout(componentId: string, item: IItemConfig): void;
|
||||
setProperties(componentId: string, properties: { [key: string]: any }): void;
|
||||
setProperties(componentId: string, properties: { [key: string]: any }, initial?: boolean): void;
|
||||
setDataProvider(handle: number, componentId: string, context: any): void;
|
||||
refreshDataProvider(componentId: string, item: any): void;
|
||||
registerEvent(componentId: string): void;
|
||||
registerEvent(componentId: string, initial?: boolean): void;
|
||||
onEvent: Event<IModelViewEventArgs>;
|
||||
validate(componentId: string): Thenable<boolean>;
|
||||
readonly onDestroy: Event<void>;
|
||||
|
||||
Reference in New Issue
Block a user