isle-project / isle-editor

Editor for ISLE (Integrated Statistics Learning Environment) lessons.
https://isledocs.com
Other
16 stars 7 forks source link

request data explorer option for "DownloadData = FALSE" #3584

Closed gweinberg closed 2 months ago

gweinberg commented 2 months ago

Problem

I would like a new option to be added to data explorer so I can disable/remove the "download data" button, since with the advent of LLMs, more students are able to upload the csv's into LLMs and have them do their reports for them.

Solution

an extra option in data explorer, called, for instance, DownloadData, that can take either "TRUE" or "FALSE" (default would probably be true)

Alternatives

No response

Additional context

None.

Planeshifter commented 2 months ago

@gweinberg Luckily this should already be possible. Try setting attribute dataTableProps={{ disableDownload: true }} on the data explorer.

gweinberg commented 2 months ago

oh nice, thanks. I notice that "disableDownload" isn't in the list of dataTableProps

Planeshifter commented 2 months ago

dataTableProps is just passed through to the underlying <DataTable /> component, so all properties that exist on that component should work.