Skip to content

Commit

Permalink
Enhances spo page section add with collapsibleTitle option. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkm17 committed Dec 21, 2024
1 parent 1819fcc commit 4a1e63c
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 169 deletions.
11 changes: 10 additions & 1 deletion docs/docs/cmd/spo/page/page-section-add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ m365 spo page section add [options]

`--overlayOpacity [overlayOpacity]`
: The overlay opacity for the background. Applied only when `zoneEmphasis` is `Image` or `Gradient`. Sets `60` value if not specified.

`--collapsibleTitle [collapsibleTitle]`
: The display name of the collapsible section
```

<Global />
Expand Down Expand Up @@ -100,7 +103,13 @@ Add Vertical section with background shading to the modern page with adjusting t
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Vertical --zoneEmphasis Neutral --isLayoutReflowOnTop
```

Add OneColumn section as a collapsible section as expanded with icon alligned to the left
Add One Column section as a collapsible section with title

```sh
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --collapsibleTitle "Collapsible Section Title"
```

Add OneColumn section as a collapsible section as expanded with icon aligned to the left

```sh
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --iconAlignment Left
Expand Down
1 change: 1 addition & 0 deletions src/m365/spo/commands/page/canvasContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ interface ZoneGroupMetadata {
isExpanded: boolean;
showDividerLine: boolean;
iconAlignment: string;
displayName?: string;
}
Loading

0 comments on commit 4a1e63c

Please sign in to comment.