Skip to content

Commit

Permalink
fix(splitter): fixed and improved dev example (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
lskramarov authored Jul 17, 2019
1 parent d9add6c commit c027191
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/mosaic-dev/splitter/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ <h1 class="mc-h1">Splitter examples</h1>

<h2 class="mc-h2">Horizontal</h2>

<mc-splitter class="horizontal-block" direction="horizontal">
<mc-splitter class="horizontal-block" [direction]="'horizontal'">
<div mc-splitter-area>first</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area>third</div>
</mc-splitter>

<br>

<h2 class="mc-h2">Vertical</h2>

<mc-splitter class="vertical-block" direction="vertical">
<mc-splitter class="vertical-block" [direction]="'vertical'">
<div mc-splitter-area>first</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area>third</div>
</mc-splitter>

Expand All @@ -31,17 +31,17 @@ <h2 class="mc-h2">Default direction</h2>

<mc-splitter class="horizontal-block">
<div mc-splitter-area>first</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area>third</div>
</mc-splitter>

<br>

<h2 class="mc-h2">Disabled</h2>

<mc-splitter class="horizontal-block" direction="horizontal" disabled>
<mc-splitter class="horizontal-block" [direction]="'horizontal'" disabled>
<div mc-splitter-area>first</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area>third</div>
</mc-splitter>

Expand All @@ -51,7 +51,7 @@ <h2 class="mc-h2">min-width for the first area</h2>

<mc-splitter class="horizontal-block">
<div mc-splitter-area class="min-width-enabled">first (with min-width)</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area class="min-width-enabled">third (with min-width)</div>
</mc-splitter>

Expand All @@ -61,8 +61,8 @@ <h2 class="mc-h2">Nested</h2>

<mc-splitter class="horizontal-block">
<div mc-splitter-area>first</div>
<div mc-splitter-area>
<mc-splitter direction="vertical">
<div mc-splitter-area class="flex">
<mc-splitter [direction]="'vertical'">
<div mc-splitter-area>top</div>
<div mc-splitter-area>center</div>
<div mc-splitter-area>bottom</div>
Expand All @@ -77,7 +77,7 @@ <h2 class="mc-h2">With custom color</h2>

<mc-splitter class="horizontal-block custom-color">
<div mc-splitter-area>first</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area>third</div>
</mc-splitter>

Expand All @@ -87,7 +87,7 @@ <h2 class="mc-h2">With custom gutter image</h2>

<mc-splitter class="horizontal-block custom-gutter">
<div mc-splitter-area>first</div>
<div mc-splitter-area>second</div>
<div mc-splitter-area class="flex">second</div>
<div mc-splitter-area>third</div>
</mc-splitter>

Expand Down

0 comments on commit c027191

Please sign in to comment.