Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Possible to add more columns and change sorting? #11

Closed
jonlarosa opened this issue Oct 11, 2017 · 6 comments · Fixed by #28
Closed

Possible to add more columns and change sorting? #11

jonlarosa opened this issue Oct 11, 2017 · 6 comments · Fixed by #28
Assignees
Labels
enhancement ✨ A new feature suggestion or improvement upon an existing feature.
Milestone

Comments

@jonlarosa
Copy link

Hi Doug,
Thanks so much for this tool, really a lifesaver for some of my clients.
Is it possible (or on the roadmap) to add the ability to add more columns in addition to the defaults (Title, Owner, Last Modified, Size)?
Similarly, it seems like the sorting is by Last Modified. Is it possible to sort the list by a different column?
Thanks again,
Jon LaRosa

@douglascayers
Copy link
Owner

Hi @jonlarosa,

Thanks for the kind feedback and feature suggestions!

I've thought about making the columns configurable, ideally wanted to use FieldSets but they aren't supported (or I didn't see how) for Files. Maybe we'll have to go with comma delimited list of field API names like we are for which related lists to show.

I have not introduced sorting yet, but with the new <lightning:datatable> component in Winter '18 release maybe this will be easier to implement.

Thanks,

Doug

@douglascayers douglascayers added the enhancement ✨ A new feature suggestion or improvement upon an existing feature. label Oct 19, 2017
@douglascayers douglascayers self-assigned this Oct 19, 2017
@douglascayers
Copy link
Owner

Update, Field Sets do exist in the Classic Setup for Content Version object but are not being displayed in Object Manager in Lightning Experience -- so I thought Field Sets weren't available. Will make sure to loop back on this to allow columns to be customized by field sets and sorting.

@douglascayers
Copy link
Owner

Hi @jonlarosa,

In Winter '18, the lightning:datatable component is not robust enough. The Spring '18 release shows much more promise.

In the develop branch I've already added support for field sets, but won't be part of the managed package until Spring '18. In fact, I can't create any new managed package versions until Spring '18 due to this known issue.

Thanks

@douglascayers douglascayers added this to the Release 1.2 milestone Dec 28, 2017
@douglascayers douglascayers added the status/inprogress Currently being developed for a future release. label May 19, 2019
@douglascayers
Copy link
Owner

The lightning:datatable component has matured enough to begin working on this enhancement request.

@douglascayers
Copy link
Owner

I'm going to split this issue into two parts:

  • Ability to customize displayed fields (by using a Field Set on Content Version object)
  • Ability to sort the data table

I've gotten the field set support done, but it'll take a bit before the sorting support is ready, so I don't want to potentially hold up the entire release if I don't get to the sorting bit yet.

This was referenced May 20, 2019
@douglascayers douglascayers removed status/inprogress Currently being developed for a future release. labels May 20, 2019
@douglascayers
Copy link
Owner

Thank you for the feedback. In Release 1.2, you can now customize the displayed columns by creating a field set on the Content Version object then selecting the field set for the Related Files component in app builder.

image

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement ✨ A new feature suggestion or improvement upon an existing feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants