Browse Source
Merge pull request #20109 from abpframework/sumeyye-tooltipTriggers
Angular - Adding Triggers Prop for Form Prop Tooltip
pull/20110/head
Gizem Mutu Kurt
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
1 deletions
-
npm/ng-packs/packages/components/extensible/src/lib/components/grid-actions/grid-actions.component.html
-
npm/ng-packs/packages/components/extensible/src/lib/models/form-props.ts
|
|
@ -64,6 +64,7 @@ |
|
|
[style]="action.btnStyle" |
|
|
[style]="action.btnStyle" |
|
|
[ngbTooltip]="action.tooltip.text | abpLocalization" |
|
|
[ngbTooltip]="action.tooltip.text | abpLocalization" |
|
|
[placement]="action.tooltip.placement || 'auto'" |
|
|
[placement]="action.tooltip.placement || 'auto'" |
|
|
|
|
|
triggers="hover" |
|
|
container="body" |
|
|
container="body" |
|
|
> |
|
|
> |
|
|
<ng-container |
|
|
<ng-container |
|
|
|
|
|
@ -121,7 +121,10 @@ export class FormProp<R = any> extends Prop<R> { |
|
|
export class FormPropData<R = any> extends PropData<R> { |
|
|
export class FormPropData<R = any> extends PropData<R> { |
|
|
getInjected: PropData<R>['getInjected']; |
|
|
getInjected: PropData<R>['getInjected']; |
|
|
|
|
|
|
|
|
constructor(injector: Injector, public readonly record: R) { |
|
|
constructor( |
|
|
|
|
|
injector: Injector, |
|
|
|
|
|
public readonly record: R, |
|
|
|
|
|
) { |
|
|
super(); |
|
|
super(); |
|
|
|
|
|
|
|
|
this.getInjected = injector.get.bind(injector); |
|
|
this.getInjected = injector.get.bind(injector); |
|
|
|