BALKANGraph / OrgChartJS

OrgChart JS is a simple, flexible and highly customizable organization chart plugin for presenting the structure of your organization and the relationships in an elegant way.
https://balkan.app/orgchartjs
252 stars 84 forks source link

'Export PDF of profile' button in custom editForm #868

Open ArchilRostiashvili opened 4 days ago

ArchilRostiashvili commented 4 days ago

Hello again, I apologize if posting a second question so soon violates any rules. If so, feel free to remove this post.

The Issue: I am following this example: (https://code.balkan.app/orgchart-js/separate-edit-and-details-forms#JS) to implement custom editForms for my project. However, I am unable to add a working export button to export the profile as a PDF (custom preview form, as shown in the attached pic).

I tried modifying the example by adding my own export button, here is the code: (https://code.balkan.app/exporting-profile-as-pdf-in-with-custom-editform's-button-(not-working)#JS), but I encounter the error:

Uncaught TypeError: this.editUI.content is not a function image

ZornitsaPesheva commented 3 days ago

Here is an example: https://code.balkan.app/org-chart-js/custom-details-form#JS

ArchilRostiashvili commented 2 days ago

Once again, thank you for your help! The issue was solved.