Skip to content

Commit

Permalink
Merge pull request #2800 from bcameron1231/v3Tab
Browse files Browse the repository at this point in the history
Update Teams Tab Docs
  • Loading branch information
bcameron1231 authored Oct 13, 2023
2 parents 55f90b1 + faaaf7d commit f796602
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/graph/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ channels.getById('19:[email protected]').tabs.getByI

```

## Add a new Tab
## Add a new Tab to Channel

```TypeScript
import { graphfi } from "@pnp/graph";
Expand All @@ -286,6 +286,34 @@ channels.getById('19:[email protected]').tabs.add('T

```

## Update a Tab

```TypeScript
import { graphfi } from "@pnp/graph";
import "@pnp/graph/teams";

const graph = graphfi(...);

const tab = await graph.teams.getById('3531f3fb-f9ee-4f43-982a-6c90d8226528').
channels.getById('19:[email protected]').tabs.getById('Id').update({
displayName: "New tab name"
});

```

## Remove a Tab from channel

```TypeScript
import { graphfi } from "@pnp/graph";
import "@pnp/graph/teams";

const graph = graphfi(...);

const tab = await graph.teams.getById('3531f3fb-f9ee-4f43-982a-6c90d8226528').
channels.getById('19:[email protected]').tabs.getById('Id').delete();

```

## Team Membership

Get the members and/or owners of a group.
Expand Down

0 comments on commit f796602

Please sign in to comment.