Skip to content

Commit

Permalink
fix: add ionPopoverStopCloseOnScroll in smartable (#1231)
Browse files Browse the repository at this point in the history
Co-authored-by: edson-nunes-brisa <[email protected]>
  • Loading branch information
edson-nunes-brisa and edsonsnunes authored Jan 14, 2025
1 parent 2ab0b81 commit fc0e1a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions projects/ion/src/lib/smart-table/smart-table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@
'bottomRight'
"
[ionPopoverKeep]="action.popover(row)['ionPopoverKeep']"
[ionPopoverStopCloseOnScroll]="
action.popover(row)['ionPopoverStopCloseOnScroll']
"
[ionPopoverCustomClass]="
action.popover(row)['ionPopoverCustomClass']
"
Expand Down
4 changes: 2 additions & 2 deletions projects/ion/src/lib/table/utilsTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TemplateRef } from '@angular/core';
import {
FontSize,
IconType,
PopoverProps,
PopoverDirectiveProps,
StatusType,
TooltipProps,
} from '../core/types';
Expand Down Expand Up @@ -90,7 +90,7 @@ export interface ActionConfirm<RowType> {
cancelText?: string;
}

export type ActionPopover = PopoverProps;
export type ActionPopover = PopoverDirectiveProps;

export interface ActionTable<RowType = SafeAny> {
label: string;
Expand Down
4 changes: 2 additions & 2 deletions stories/smart-tableActionPopover.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Meta, Story } from '@storybook/angular/types-6-0';
import { TableActionPopoverComponent } from '../projects/ion/src/lib/smart-table/mocks/tableActionPopover';
import {
IonSmartTableModule,
PopoverProps,
PopoverDirectiveProps,
} from '../projects/ion/src/public-api';

const Template: Story<TableActionPopoverComponent> = (
Expand Down Expand Up @@ -42,7 +42,7 @@ WithPopoverAction.args = {
tooltipConfig: {
ionTooltipTitle: 'Tooltip customizada',
},
popover: (row: { name: string }): Partial<PopoverProps> => ({
popover: (row: { name: string }): Partial<PopoverDirectiveProps> => ({
ionPopoverTitle: `Detalhes do álbum ${row.name}`,
ionPopoverBody: {
template: `
Expand Down

0 comments on commit fc0e1a4

Please sign in to comment.