Skip to content

Commit

Permalink
Merge pull request primefaces#15601 from Sinan997/sinan/issue-15581
Browse files Browse the repository at this point in the history
Add tooltip option for main button of `SplitButtonModule`
  • Loading branch information
cetincakiroglu authored May 30, 2024
2 parents 08a4a02 + 28a483b commit 81ccac4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/app/components/splitbutton/splitbutton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ type SplitButtonIconPosition = 'left' | 'right';
[ariaLabel]="buttonProps?.['ariaLabel'] || label"
pAutoFocus
[autofocus]="autofocus"
[pTooltip]="tooltip"
[tooltipOptions]="tooltipOptions"
>
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
</button>
Expand All @@ -58,6 +60,8 @@ type SplitButtonIconPosition = 'left' | 'right';
[ariaLabel]="buttonProps?.['ariaLabel']"
pAutoFocus
[autofocus]="autofocus"
[pTooltip]="tooltip"
[tooltipOptions]="tooltipOptions"
></button>
</ng-template>
<button
Expand Down Expand Up @@ -156,6 +160,16 @@ export class SplitButton {
* @group Props
*/
@Input() label: string | undefined;
/**
* Tooltip for the main button.
* @group Props
*/
@Input() tooltip: string | undefined;
/**
* Tooltip options for the main button.
* @group Props
*/
@Input() tooltipOptions: string | undefined;
/**
* Inline style of the element.
* @group Props
Expand Down

0 comments on commit 81ccac4

Please sign in to comment.