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

new funcs: export CSV, undo, redo, pagination #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

novotnikg
Copy link

Download survey data as csv
Undo/redo in survey and cave editor
Pagination in survey and cave editor

Copy link
Owner

@joemeszaros joemeszaros left a comment

Choose a reason for hiding this comment

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

The downloaded file looks like this;

"";"";"From";"To";"Length";"Azimuth";"Clino";"X";"Y";"Z";"Attributes"
"ok";"center";"0";"1";"5.1";"166.8";"-54.6";"644741.6746247347";"255548.12372276606";"-4.157151758215626";"[]"

The first 'status' field (with 'ok' values) should not be exported to the csv.
Please look at the following link: https://tabulator.info/docs/6.3/download#advanced-visibility
The second column does not have a name (splay type), pls figure it out why it's showing up as empty string.

{
id : 'export-to-csv',
text : 'Export to CSV',
click : () => this.table.download('csv', this.survey.name + '.csv', { delimiter: ';' })
Copy link
Owner

Choose a reason for hiding this comment

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

please add the name of the cave to the CSV file's name in addition to the survey name

@@ -1515,6 +1524,12 @@ class SurveyEditor extends Editor {
clipboardPasteParser : 'range',
clipboardPasteAction : 'range',

// pagination
pagination : true,
Copy link
Owner

@joemeszaros joemeszaros Feb 11, 2025

Choose a reason for hiding this comment

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

it would be great to resize the table (and the panel / dom container) height upon a pagination value change (7, 10, 25, ....).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants