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

Groupable Option #10

Open
xichro opened this issue Aug 17, 2017 · 3 comments
Open

Groupable Option #10

xichro opened this issue Aug 17, 2017 · 3 comments

Comments

@xichro
Copy link

xichro commented Aug 17, 2017

Hi,

I was wondering whether or not grouping would be developed? This plugin is perfect for what I need, but unfortunately I need grouping of rows to make it feasible. Thanks for your great work on it so far!

Kind regards,
Matt

@RobertoPrevato
Copy link
Owner

Hi Matt,
the support for grouping items is definitely on my priority list - I also listed it on top of "Nice to have" features in GitHub, here: https://github.com/RobertoPrevato/KingTable/projects/1.

The only reason I didn't do it, yet, is due to lack of time to devote to this project (although I worked on other repositories).

I will try to work on this feature in the next days, and comment here to let you know, once completed. :)
However, I cannot make any promise, due to private life and duties of these days.

Kind Regards,
Roberto

@xichro
Copy link
Author

xichro commented Aug 29, 2017

Not a problem, I can understand how busy life gets! No rush on this, I was just wondering if it was in the pipeline and whether you were still working on this library. Thanks for looking into it :)

Apologies for the late reply.

Matt.

@RobertoPrevato
Copy link
Owner

RobertoPrevato commented Sep 9, 2017

Hi @xichro,
I am working on the support for grouping; here I uploaded a picture for preview: colors table grouped by "red", "blue" and "hue" properties grouping wip

I am implementing support for grouping by one or multiple properties (even by functions, so for example it will be possible to group by YEAR of a date property).

It's taking time because there is much to be done and not-obvious decisions to be taken. For example, I decided that grouping enforces also sorting by grouped properties. This is to ensure that when a user groups by a property, only one group for each matching value will be created and all matching items are kept together in a well-sorted manner. For example, this doesn't happen in Python (grouping and sorting are two different things, and Python doesn't make assumptions about this). This makes sense in Python, but would be confusing for normal web users.

The first release will handle groups only for the HTML builder (no support for plain text builder); for both "Gallery" and "Table" views. I will also need to work on grouping support when exporting, for example to XLSX, JSON, XML.

Here another preview, of grouping by single property + search. grouping wip

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

No branches or pull requests

2 participants