From f20b33ddbcb419796f4be2530a5235ab378f74a6 Mon Sep 17 00:00:00 2001 From: Sinan997 Date: Fri, 17 May 2024 12:00:04 +0300 Subject: [PATCH 1/3] add tooltip option for main button of `SplitButtonModule` --- src/app/components/splitbutton/splitbutton.ts | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/app/components/splitbutton/splitbutton.ts b/src/app/components/splitbutton/splitbutton.ts index ffdd6e27f48..f09d9f82bce 100755 --- a/src/app/components/splitbutton/splitbutton.ts +++ b/src/app/components/splitbutton/splitbutton.ts @@ -1,5 +1,21 @@ import { CommonModule } from '@angular/common'; -import { ChangeDetectionStrategy, Component, ContentChildren, ElementRef, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewChild, ViewEncapsulation, booleanAttribute, numberAttribute, signal } from '@angular/core'; +import { + ChangeDetectionStrategy, + Component, + ContentChildren, + ElementRef, + EventEmitter, + Input, + NgModule, + Output, + QueryList, + TemplateRef, + ViewChild, + ViewEncapsulation, + booleanAttribute, + numberAttribute, + signal +} from '@angular/core'; import { MenuItem, PrimeTemplate } from 'primeng/api'; import { ButtonModule } from 'primeng/button'; import { ChevronDownIcon } from 'primeng/icons/chevrondown'; @@ -35,6 +51,7 @@ type SplitButtonIconPosition = 'left' | 'right'; [ariaLabel]="buttonProps?.['ariaLabel'] || label" pAutoFocus [autofocus]="autofocus" + [pTooltip]="tooltip" > @@ -58,6 +75,7 @@ type SplitButtonIconPosition = 'left' | 'right'; [ariaLabel]="buttonProps?.['ariaLabel']" pAutoFocus [autofocus]="autofocus" + [pTooltip]="tooltip" > @@ -60,6 +61,7 @@ type SplitButtonIconPosition = 'left' | 'right'; pAutoFocus [autofocus]="autofocus" [pTooltip]="tooltip" + [tooltipOptions]="tooltipOptions" >