Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhances spo page section add with collapsibleTitle option. Closes #6461 #6471

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading