Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(platform): fdp-table Enhance the <fdp-table-p13-dialog [table]="table"> component to emit an event with the selected column #12430

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

khotcholava
Copy link
Contributor

closes #12293

Description

  • Enhance the <fdp-table-p13-dialog [table]="table"> component to emit an event with the selected column details when the OK button is clicked in the dialog.
  • This allows the application to subscribe to this event and persist the user’s selected columns.

closes (#12293)[#12293]

## Description
- Enhance the <fdp-table-p13-dialog [table]="table"></fdp-table-p13-dialog> component to emit an event with the selected column details when the OK button is clicked in the dialog.
- This allows the application to subscribe to this event and persist the user’s selected columns.
@khotcholava khotcholava self-assigned this Sep 16, 2024
Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for fundamental-ngx ready!

Name Link
🔨 Latest commit 341e7f4
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/66ea943457c69c000899470c
😎 Deploy Preview https://deploy-preview-12430--fundamental-ngx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Sep 16, 2024

Visit the preview URL for this PR (updated for commit 341e7f4):

https://fundamental-ngx-gh--pr12430-feat-emit-selected-c-x8y69a5b.web.app

(expires Sat, 21 Sep 2024 08:54:23 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 41b993ee8e451bd7c6770b342ce142dc886eacff

@khotcholava khotcholava changed the title fix(platform): fdp-table sorting visible columns state get lost fix(platform): fdp-table Enhance the <fdp-table-p13-dialog [table]="table"> component to emit an event with the selected column Sep 16, 2024
@@ -78,6 +86,10 @@ export class TableP13DialogComponent implements OnDestroy {
return this._table;
}

/** Event emitted when dialog is closed. */
@Output()
closeDialog = new EventEmitter<string[]>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, should be called dialogClosed, in past-tense, since it is an event that is triggered after closing. closeDialog gives me the impression it's a method that can be called that will then close the dialog

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense, I've changed it.

Copy link
Member

@mikerodonnell89 mikerodonnell89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just one comment above

@droshev droshev added the table label Sep 17, 2024
@droshev droshev merged commit f00cd77 into main Sep 19, 2024
19 checks passed
@droshev droshev deleted the feat/emit-selected-columns-on-confirm branch September 19, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Platform table] FDP - Personalization Dialog (No API or function to persist the selected columns)
5 participants