Skip to content

Commit 68bb30d

Browse files
authored
docs(Splitter): Update nested Splitters example (#3192)
1 parent e296ca4 commit 68bb30d

File tree

1 file changed

+36
-29
lines changed

1 file changed

+36
-29
lines changed

components/splitter/orientation.md

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,38 +63,45 @@ You can customize the Splitter orientation through the its `Orientation` paramet
6363

6464
## Nested Splitters With Different Orientation
6565

66-
Sometimes you need to create a more complex layout that includes both horizontal and vertical panes. To do that, you can nest Telerik Splitter components inside the panes of other splitters. When you do that, set the `Class` parameter of the nested splitter to `k-pane-flex`.
66+
You can create more complex layouts that include both horizontal and vertical Splitters. To do that, add a Telerik Splitter as a child of another Splitter's pane. Usually, the nested Splitter should be 100% high.
6767

68-
>caption Nested splitters that create a complex layout with both horizontal and vertical panes
68+
>caption Layout with nested Splitters
6969
7070
````RAZOR
71-
<div style="width: 500px; height: 300px; border: 2px solid red;">
72-
73-
<TelerikSplitter Width="100%" Height="100%">
74-
<SplitterPanes>
75-
<SplitterPane Size="100px">
76-
<div>left sidebar</div>
77-
</SplitterPane>
78-
<SplitterPane>
79-
80-
<TelerikSplitter Class="k-pane-flex"
81-
Width="100%" Height="100%"
82-
Orientation="@SplitterOrientation.Vertical">
83-
<SplitterPanes>
84-
<SplitterPane Size="20%">
85-
<div>TOP content</div>
86-
</SplitterPane>
87-
<SplitterPane>
88-
<div>Bottom content</div>
89-
</SplitterPane>
90-
</SplitterPanes>
91-
</TelerikSplitter>
92-
93-
</SplitterPane>
94-
</SplitterPanes>
95-
</TelerikSplitter>
96-
97-
</div>
71+
<TelerikSplitter Orientation="@SplitterOrientation.Horizontal"
72+
Height="100vh"
73+
Width="100vw">
74+
<SplitterPanes>
75+
<SplitterPane Size="120px">
76+
<div>Spltter 1 (horizontal), Left Pane</div>
77+
</SplitterPane>
78+
<SplitterPane>
79+
80+
<TelerikSplitter Height="100%"
81+
Orientation="@SplitterOrientation.Vertical">
82+
<SplitterPanes>
83+
<SplitterPane Size="20%">
84+
<div>Splitter 2 (vertical), Top Pane</div>
85+
</SplitterPane>
86+
<SplitterPane>
87+
<TelerikSplitter Height="100%"
88+
Orientation="@SplitterOrientation.Horizontal">
89+
<SplitterPanes>
90+
<SplitterPane>
91+
<div>Splitter 3 (horizontal), Left Pane</div>
92+
</SplitterPane>
93+
<SplitterPane>
94+
<div>Splitter 3 (horizontal), Right Pane</div>
95+
</SplitterPane>
96+
</SplitterPanes>
97+
</TelerikSplitter>
98+
</SplitterPane>
99+
</SplitterPanes>
100+
</TelerikSplitter>
101+
102+
</SplitterPane>
103+
</SplitterPanes>
104+
</TelerikSplitter>
98105
````
99106

100107
## Next Steps

0 commit comments

Comments
 (0)