You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a940f7d
Browse filesBrowse the repository at this point in the historyBrowse files
Matt Mazzola
committed
Refactor powerbi-client to use updated and hpm, wpmp. Hpm now specifies the window wpmp should send the message to allowing single instance of wpmp to communicate to many different iframe windows.
thrownewError(`No access token was found for element. You must specify an access token directly on the element using attribute '${Embed.accessTokenAttribute}' or specify a global token at: powerbi.accessToken.`);
thrownewError(`Attempted to embed component of type: ${componentType} but did not find any matching component. Please verify the type you specified is intended.`);
* Given an html element which has component embedded within it, remove the component from list of embeds, remove association with component, and remove the iframe.
172
212
*/
@@ -187,6 +227,47 @@ export class PowerBi {
187
227
iframe.remove();
188
228
}
189
229
}
230
+
231
+
handleEvent(event: IEvent<any>): void{
232
+
constembed=Utils.find(embed=>{
233
+
constconfig=embed.getConfig();
234
+
return(config.type===event.type
235
+
&&config.id===event.id);
236
+
},this.embeds);
237
+
238
+
if(embed){
239
+
embed.handleEvent(event);
240
+
}
241
+
}
242
+
243
+
/**
244
+
* Translate target into url
245
+
* Target may be to the whole report, speific page, or specific visual
0 commit comments