Add subsections for references with 2+ examples.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-09 13:50:45 +00:00
parent 71b859b6e2
commit dd6e73aa39
14 changed files with 103 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ The option chosen determines the edge to which the widget is docked.
## Examples
### Basic usage
The example below shows a `left` docked sidebar.
Notice that even though the content is scrolled, the sidebar remains fixed.
@@ -32,6 +34,8 @@ Notice that even though the content is scrolled, the sidebar remains fixed.
--8<-- "docs/examples/guide/layout/dock_layout1_sidebar.css"
```
### Advanced usage
The second example shows how one can use full-width or full-height containers to dock labels to the edges of a larger container.
The labels will remain in that position (docked) even if the container they are in scrolls horizontally and/or vertically.