Skip to content

Commit

Permalink
Merge pull request #9808 from daniel-lang/patch-1
Browse files Browse the repository at this point in the history
fixed #9807  - Splitter property for initial size should be called panelSize on the showcase
  • Loading branch information
yigitfindikli authored Feb 12, 2021
2 parents c01a81c + 3c4b2bf commit 6be2603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/showcase/components/splitter/splitterdemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ <h5>Layout</h5>
</app-code>

<h5>Initial Sizes</h5>
<p>When no sizes are defined, panels are split 50/50, use the <i>sizes</i> property to give relative widths e.g. [20,80].</p>
<p>When no sizes are defined, panels are split 50/50, use the <i>panelSizes</i> property to give relative widths e.g. [20,80].</p>
<app-code lang="markup" ngNonBindable ngPreserveWhitespaces>
&lt;p-splitter [style]="&#123;'height': '300px'&#125;" [sizes]="[20,80]" layout="vertical"&gt;
&lt;p-splitter [style]="&#123;'height': '300px'&#125;" [panelSizes]="[20,80]" layout="vertical"&gt;
&lt;ng-template&gt;
Panel 1
&lt;/ng-template&gt;
Expand Down Expand Up @@ -196,7 +196,7 @@ <h5>Properties</h5>
</thead>
<tbody>
<tr>
<td>sizes</td>
<td>panelSizes</td>
<td>number</td>
<td>null</td>
<td>Size of the elements relative to 100%.</td>
Expand Down Expand Up @@ -397,4 +397,4 @@ <h5>Dependencies</h5>
</ng-template>
</p-tabPanel>
</p-tabView>
</div>
</div>

0 comments on commit 6be2603

Please sign in to comment.