Skip to content

Commit eadb4be

Browse files
committed
Merged PR 22890: Set embed component tab Index
Set embed component tab Index
1 parent 73218d1 commit eadb4be

File tree

6 files changed

+55
-9
lines changed

6 files changed

+55
-9
lines changed

dist/powerbi-client.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! powerbi-client v2.7.2 | (c) 2016 Microsoft Corporation MIT */
1+
/*! powerbi-client v2.7.3 | (c) 2016 Microsoft Corporation MIT */
22
declare module "util" {
33
import { HttpPostMessage } from 'http-post-message';
44
/**
@@ -413,6 +413,14 @@ declare module "embed" {
413413
* Sets Iframe's title
414414
*/
415415
setComponentTitle(title: string): void;
416+
/**
417+
* Sets elements's tabindex attribute
418+
*/
419+
setComponentTabIndex(tabIndex?: number): void;
420+
/**
421+
* Removes element's tabindex attribute
422+
*/
423+
removeComponentTabIndex(tabIndex?: number): void;
416424
/**
417425
* Adds the ability to get groupId from url.
418426
* By extracting the ID we can ensure that the ID is always explicitly provided as part of the load configuration.

dist/powerbi.js

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/powerbi.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-client",
3-
"version": "2.7.2",
3+
"version": "2.7.3",
44
"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.",
55
"main": "dist/powerbi.js",
66
"typings": "dist/powerbi-client.d.ts",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
version: '2.7.2',
2+
version: '2.7.3',
33
type: 'js'
44
};
55

src/embed.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,26 @@ export abstract class Embed {
586586
}
587587
}
588588

589+
/**
590+
* Sets element's tabindex attribute
591+
*/
592+
setComponentTabIndex(tabIndex?: number): void {
593+
if(!this.element) {
594+
return;
595+
}
596+
this.element.setAttribute("tabindex", (tabIndex == null) ? "0" : tabIndex.toString());
597+
}
598+
599+
/**
600+
* Removes element's tabindex attribute
601+
*/
602+
removeComponentTabIndex(tabIndex?: number): void {
603+
if(!this.element) {
604+
return;
605+
}
606+
this.element.removeAttribute("tabindex");
607+
}
608+
589609
/**
590610
* Adds the ability to get groupId from url.
591611
* By extracting the ID we can ensure that the ID is always explicitly provided as part of the load configuration.

0 commit comments

Comments
 (0)