Skip to content

Commit

Permalink
Merge pull request #12069 from primefaces/issue-11917
Browse files Browse the repository at this point in the history
added panelStyleClass
  • Loading branch information
cetincakiroglu authored Oct 21, 2022
2 parents 1448873 + e7b27a0 commit bebae32
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/app/components/password/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const Password_VALUE_ACCESSOR: any = {
<i *ngIf="showClear && value != null" class="p-password-clear-icon pi pi-times" (click)="clear()"></i>
<i *ngIf="toggleMask" [ngClass]="toggleIconClass()" (click)="onMaskToggle()"></i>
<div #overlay *ngIf="overlayVisible" [ngClass]="'p-password-panel p-component'" (click)="onOverlayClick($event)"
[@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onAnimationStart($event)" (@overlayAnimation.done)="onAnimationEnd($event)">
[@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onAnimationStart($event)" (@overlayAnimation.done)="onAnimationEnd($event)" [ngStyle]="panelStyle" [class]="panelStyleClass">
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
<ng-container *ngIf="contentTemplate; else content">
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
Expand Down Expand Up @@ -326,6 +326,10 @@ export class Password implements AfterContentInit,OnInit {

@Input() inputStyleClass: string;

@Input() panelStyle: any;

@Input() panelStyleClass: string;

@Input() styleClass: string;

@Input() style: any;
Expand Down
8 changes: 6 additions & 2 deletions src/app/components/treeselect/treeselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const TREESELECT_VALUE_ACCESSOR: any = {
<span class="p-treeselect-trigger-icon pi pi-chevron-down"></span>
</div>
<div #overlayRef class="p-treeselect-panel p-component" *ngIf="overlayVisible" (click)="onOverlayClick($event)"
[@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationDone($event)">
[@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationDone($event)" [ngStyle]="panelStyle" [class]="panelStyleClass">
<ng-container *ngTemplateOutlet="headerTemplate; context: {$implicit: value, options: options}"></ng-container>
<div class="p-treeselect-header" *ngIf="filter">
<div class="p-treeselect-filter-container">
Expand Down Expand Up @@ -119,10 +119,14 @@ export class TreeSelect implements AfterContentInit {

@Input() panelClass: string;

@Input() panelStyle: any;

@Input() panelStyleClass: string;

@Input() containerStyle: object;

@Input() containerStyleClass: string;

@Input() labelStyle: object;

@Input() labelStyleClass: string;
Expand Down
12 changes: 12 additions & 0 deletions src/app/showcase/components/multiselect/multiselectdemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,12 +548,24 @@ <h5>Properties</h5>
<td>null</td>
<td>Inline style of the element.</td>
</tr>
<tr>
<td>panelStyle</td>
<td>string</td>
<td>null</td>
<td>Inline style of the overlay panel element.</td>
</tr>
<tr>
<td>styleClass</td>
<td>string</td>
<td>null</td>
<td>Style class of the element.</td>
</tr>
<tr>
<td>panelStyleClass</td>
<td>string</td>
<td>null</td>
<td>Style class of the overlay panel element.</td>
</tr>
<tr>
<td>tabindex</td>
<td>number</td>
Expand Down
20 changes: 19 additions & 1 deletion src/app/showcase/components/password/passworddemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,29 @@ <h5>Properties</h5>
<td>null</td>
<td>Inline style of the component.</td>
</tr>
<tr>
<td>style</td>
<td>string</td>
<td>null</td>
<td>Inline style of the element.</td>
</tr>
<tr>
<td>panelStyle</td>
<td>string</td>
<td>null</td>
<td>Inline style of the overlay panel element.</td>
</tr>
<tr>
<td>styleClass</td>
<td>string</td>
<td>null</td>
<td>Style class of the component.</td>
<td>Style class of the element.</td>
</tr>
<tr>
<td>panelStyleClass</td>
<td>string</td>
<td>null</td>
<td>Style class of the overlay panel element.</td>
</tr>
<tr>
<td>placeholder</td>
Expand Down
16 changes: 14 additions & 2 deletions src/app/showcase/components/treeselect/treeselectdemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,25 @@ <h5>TreeNode API utilized by the TreeSelect</h5>
<td>style</td>
<td>string</td>
<td>null</td>
<td>Inline style of the node.</td>
<td>Inline style of the element.</td>
</tr>
<tr>
<td>panelStyle</td>
<td>string</td>
<td>null</td>
<td>Inline style of the overlay panel element.</td>
</tr>
<tr>
<td>styleClass</td>
<td>string</td>
<td>null</td>
<td>Style class of the node.</td>
<td>Style class of the element.</td>
</tr>
<tr>
<td>panelStyleClass</td>
<td>string</td>
<td>null</td>
<td>Style class of the overlay panel element.</td>
</tr>
<tr>
<td>containerStyleClass</td>
Expand Down

0 comments on commit bebae32

Please sign in to comment.