-
Notifications
You must be signed in to change notification settings - Fork 103
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
Refactor export handler from inline into own function #393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@kingjia90 wdyt? We would need it in 1.4
Not sure how it works on ExtJS, but when setting an My point is that we may need something like a suffix eg. |
very good point - didn't think of that - i will check it ... |
By quickly look at the other PR, if we have to apply changes to admin ui classic bundle anyways, shouldn't be easier by refactoring to have this admin-ui-classic-bundle/public/js/pimcore/object/helpers/gridTabAbstract.js Lines 316 to 318 in 1976b8f
in an own method and call it (eg. currentGridTab.startExport('csv') ) instead of simulating(?) a trigger/click of a button?
It then also overcome the "limit" of the copilot to be only exporting in CSV format. It could be easily extended to XLSX by passing a different
Alternatively just could use |
@kingjia90, thanks for pointing me in the right direction. I moved the export functionality to a separate function (as you mentioned). With that it is now possible to start the export via the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but need to change the PR's title before merging
No description provided.