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
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "powerbi-client",
3
-
"version": "2.6.4",
3
+
"version": "2.6.5",
4
4
"description": "JavaScript library for embedding Power BI into your apps. Provides service which makes it easy to embed different types of components and an object model which allows easy interaction with these components such as changing pages, applying filters, and responding to data selection.",
@@ -287,9 +288,17 @@ export class Service implements IService {
287
288
returncomponent;
288
289
}
289
290
291
+
getNumberOfComponents(): number{
292
+
if(!this.embeds){
293
+
return0;
294
+
}
295
+
296
+
returnthis.embeds.length;
297
+
}
298
+
290
299
/**
291
300
* Given a configuration based on a Power BI element, saves the component instance that reference the element for later lookup.
292
-
*
301
+
*
293
302
* @private
294
303
* @param {IPowerBiElement} element
295
304
* @param {embed.IEmbedConfigurationBase} config
@@ -318,7 +327,7 @@ export class Service implements IService {
318
327
319
328
/**
320
329
* Given an element that already contains an embed component, load with a new configuration.
321
-
*
330
+
*
322
331
* @private
323
332
* @param {IPowerBiElement} element
324
333
* @param {embed.IEmbedConfigurationBase} config
@@ -376,7 +385,7 @@ export class Service implements IService {
376
385
377
386
/**
378
387
* Returns an instance of the component associated with the element.
379
-
*
388
+
*
380
389
* @param {HTMLElement} element
381
390
* @returns {(Report | Tile)}
382
391
*/
@@ -392,7 +401,7 @@ export class Service implements IService {
392
401
393
402
/**
394
403
* Finds an embed instance by the name or unique ID that is provided.
395
-
*
404
+
*
396
405
* @param {string} uniqueId
397
406
* @returns {(Report | Tile)}
398
407
*/
@@ -411,7 +420,7 @@ export class Service implements IService {
411
420
412
421
/**
413
422
* Given an HTML element that has a component embedded within it, removes the component from the list of embedded components, removes the association between the element and the component, and removes the iframe.
414
-
*
423
+
*
415
424
* @param {HTMLElement} element
416
425
* @returns {void}
417
426
*/
@@ -441,9 +450,9 @@ export class Service implements IService {
441
450
442
451
/**
443
452
* handles tile events
444
-
*
445
-
* @param {IEvent<any>} event
446
-
*/
453
+
*
454
+
* @param {IEvent<any>} event
455
+
*/
447
456
handleTileEvents(event: IEvent<any>): void{
448
457
if(event.type==='tile'){
449
458
this.handleEvent(event);
@@ -452,7 +461,7 @@ export class Service implements IService {
452
461
453
462
/**
454
463
* Given an event object, finds the embed component with the matching type and ID, and invokes its handleEvent method with the event object.
455
-
*
464
+
*
456
465
* @private
457
466
* @param {IEvent<any>} event
458
467
*/
@@ -480,7 +489,7 @@ export class Service implements IService {
480
489
/**
481
490
* API for warm starting powerbi embedded endpoints.
482
491
* Use this API to preload Power BI Embedded in the background.
0 commit comments