Skip to content

Commit

Permalink
Fixed #9883 - selectButton >Custom Template broken
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Feb 15, 2021
1 parent 9ef5da3 commit a39abb5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h5>Multiple Selection</h5>
<p-selectButton [options]="paymentOptions" [(ngModel)]="value2" multiple="multiple" optionLabel="name" optionValue="value"></p-selectButton>

<h5>Custom Template</h5>
<p-selectButton [options]="justifyOptions" [(ngModel)]="value3">
<p-selectButton [options]="justifyOptions" [(ngModel)]="value3" optionLabel="icon">
<ng-template let-item>
<i [class]="item.icon"></i>
</ng-template>
Expand Down Expand Up @@ -151,7 +151,7 @@ <h5>Custom Content</h5>
<p>For custom content support define a ng-template where the local ng-template variable refers to an option in the options collection.</p>

<app-code lang="markup" ngNonBindable ngPreserveWhitespaces>
&lt;p-selectButton [options]="justifyOptions" [(ngModel)]="value"&gt;
&lt;p-selectButton [options]="justifyOptions" [(ngModel)]="value" optionLabel="icon"&gt;
&lt;ng-template let-item&gt;
&lt;i [class]="item.icon"&gt;&lt;/i&gt;
&lt;/ng-template&gt;
Expand Down Expand Up @@ -307,7 +307,7 @@ <h5>Dependencies</h5>
&lt;p-selectButton [options]="paymentOptions" [(ngModel)]="value2" multiple="multiple" optionLabel="name" optionValue="value"&gt;&lt;/p-selectButton&gt;

&lt;h5&gt;Custom Template&lt;/h5&gt;
&lt;p-selectButton [options]="justifyOptions" [(ngModel)]="value3"&gt;
&lt;p-selectButton [options]="justifyOptions" [(ngModel)]="value3" optionLabel="icon"&gt;
&lt;ng-template let-item&gt;
&lt;i [class]="item.icon"&gt;&lt;/i&gt;
&lt;/ng-template&gt;
Expand Down

0 comments on commit a39abb5

Please sign in to comment.