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: docs/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ Teams folder contains following three files:
94
94
95
95
## Updating code to be aware of the Microsoft Teams context
96
96
97
-
1. Open **src\webparts\myFirstTeamTab\MyFirstTeamTabWebPart.ts** for the needed edits on making our solution aware of the Microsoft Teams context, if it's used as a tab.
97
+
1. Open **src\webparts\myFirstTeamsTab\MyFirstTeamsTabWebPart.ts** for the needed edits on making our solution aware of the Microsoft Teams context, if it's used as a tab.
98
98
99
99
1. Add the following private variable inside the **MyFirstTeamsTabWebPart** class. We will be storing information around the Microsoft Teams context in this variable.
100
100
@@ -122,7 +122,7 @@ Teams folder contains following three files:
122
122
}
123
123
```
124
124
125
-
1. Update the **render** method as follows. Notice how we are rendering different content dependent if the code is rendered as a tab in Microsoft Team or as a web part in SharePoint.
125
+
1. Update the **render** method as follows. Notice how we are rendering different content dependent if the code is rendered as a tab in Microsoft Teams or as a web part in SharePoint.
126
126
127
127
```typescript
128
128
public render(): void {
@@ -132,17 +132,17 @@ Teams folder contains following three files:
132
132
let siteTabTitle: string = '';
133
133
134
134
if (this._teamsContext) {
135
-
// We have teams context for the web part
135
+
// We have Teams context for the web part
136
136
title = "Welcome to Teams!";
137
137
subTitle = "Building custom enterprise tabs for your business.";
138
-
siteTabTitle = "We are in the context of following Team: " + this._teamsContext.teamName;
138
+
siteTabTitle = "We are in the context of following Teams team: " + this._teamsContext.teamName;
139
139
}
140
140
else
141
141
{
142
142
// We are rendered in normal SharePoint context
143
143
title = "Welcome to SharePoint!";
144
144
subTitle = "Customize SharePoint experiences using Web Parts.";
145
-
siteTabTitle = "We are in the context of following site: " + this.context.pageContext.web.title;
145
+
siteTabTitle = "We are in the context of following SharePoint site: " + this.context.pageContext.web.title;
0 commit comments