Skip to content

Commit

Permalink
add tooltip options for the main button
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinan997 committed May 18, 2024
1 parent 001f2fb commit 28a483b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/components/splitbutton/splitbutton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type SplitButtonIconPosition = 'left' | 'right';
pAutoFocus
[autofocus]="autofocus"
[pTooltip]="tooltip"
[tooltipOptions]="tooltipOptions"
>
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
</button>
Expand All @@ -60,6 +61,7 @@ type SplitButtonIconPosition = 'left' | 'right';
pAutoFocus
[autofocus]="autofocus"
[pTooltip]="tooltip"
[tooltipOptions]="tooltipOptions"
></button>
</ng-template>
<button
Expand Down Expand Up @@ -162,6 +164,11 @@ export class SplitButton {
* @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 28a483b

Please sign in to comment.