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

Add label functionality for details table #111

Merged
merged 3 commits into from
Mar 26, 2018
Merged

Conversation

pburnsdata
Copy link
Contributor

Closes #105

@pburnsdata pburnsdata added this to the v3.2.6 milestone Mar 22, 2018
@pburnsdata pburnsdata requested review from samussiah and removed request for samussiah March 22, 2018 17:56
@pburnsdata pburnsdata requested a review from samussiah March 22, 2018 18:36
var detailVars = vars.details;
var details = details.map(d => {
var current = {};
detailVars.forEach(currentVar => (current[currentVar] = d[currentVar]));
detailVars.forEach(currentVar => {
if (currentVar.value_col) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice logic!

@samussiah samussiah merged commit c105dfd into v3.2.6-dev Mar 26, 2018
@samussiah samussiah deleted the custom-labels branch March 26, 2018 14:33
@danedexF5
Copy link

danedexF5 commented Apr 2, 2018

@samussiah This works as expected across three browsers. The listings appears with nothing added to the Details fields. Then when AESER is added with Label Sev it appears as one column with the label Sev. Same results for AESEV and Sev. When both are added it creates 2 columns. When the Labels are removed the column label defaults to what is in the Value Column field.

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.

3 participants