Reputation: 779
I have a PrimeNG multiselect with Select all option. Currently the "Select All" option is just rendered as a check box with no labels against it. I would like add the text "All" against the select all option.
<p-multiSelect [options]="years" [style]="{'width':'300px'}" [(ngModel)]="selectedYears"
[filter]="true" [showToggleAll]="true"></p-multiSelect>
Upvotes: 3
Views: 2267
Reputation: 41
<p-multiSelect [options]="years" [style]="{'width':'300px'}" [(ngModel)]="selectedYears" [filter]="false" [showToggleAll]="true"></p-multiSelect>
<ng-template pTemplate="header">
<div class="checkbox-all-text">{{ sharedResources.ALL }}</div>
</ng-template>
.checkbox-all-text {
position: absolute;
left: 40px;
}
Upvotes: 4