File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -584,6 +584,34 @@ Style pages with breadcrumbs to display the full navigation path at the top of p
584584}
585585```
586586
587+ ## Interaction Configuration
588+
589+ Control how users interact with navigation elements using the ` interaction ` property in your ` docs.json ` .
590+
591+ ### Auto Navigation on Expand
592+
593+ Different themes have different default behavior when clicking on navigation groups. You can override this behavior using the ` drilldown ` option:
594+
595+ ``` json
596+ {
597+ "interaction" : {
598+ "drilldown" : true // Force navigation to first page when a user expands a dropdown
599+ }
600+ }
601+ ```
602+
603+ ``` json
604+ {
605+ "interaction" : {
606+ "drilldown" : false // Never navigate, only expand/collapse
607+ }
608+ }
609+ ```
610+
611+ - Set to ` true ` to force automatic navigation to the first page when clicking navigation groups
612+ - Set to ` false ` to prevent navigation and only expand or collapse the group
613+ - Leave unset to use the theme's default behavior
614+
587615## FAQ
588616
589617<Accordion title = " What navigation folders should I avoid?" >
You can’t perform that action at this time.
0 commit comments