Skip to content

react-page-navigator - Collapsed menu by default? #5637

@TMartinEdDept

Description

@TMartinEdDept

Disclaimer

Yes

Sample

react-page-navigator

Contributor(s)

@aakashbhardwaj619 @Jwaegebaert @mikezimm @tmaestrini

What happened?

Love this package! But is there a way to get it to display the menu with the headings collapsed by default, rather than expanded? My TOC is so long that its difficult to navigate when its all expanded.

Steps to reproduce

  1. Load TOC for long document
  2. TOC shows all headings expanded, rather than collapsed.

Expected behavior

Ideally there would be a button to toggle this.

Target SharePoint environment

SharePoint Online

Developer environment

None

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

What version of Node.js is currently installed on your workstation?

18

What version of Node.js is required by the sample?

18

Paste the results of SPFx doctor

There is no error

Additional environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug-suspectedSuspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions