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 multi select to table #427

Closed
GordonSmith opened this Issue May 27, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@GordonSmith
Member

GordonSmith commented May 27, 2015

No description provided.

@GordonSmith GordonSmith added this to the 1.2.0 milestone May 27, 2015

@GordonSmith

This comment has been minimized.

Member

GordonSmith commented May 27, 2015

Here are some suggested steps:

  1. Ensure each row in the table has a uniqueID: <tr id="xxx">...</tr>
  2. Add a SelectionBag to the TableWidget
  3. Add a click handler similar to: https://github.com/hpcc-systems/Visualization/blob/master/src/graph/Graph.js#L496-L498 - Note: The first param being handed to the selectionBag.click will need to be a new JS Object: {_id: ROW_UNIQUE_ID}
  4. Add some new styles to the CSS to highlight the select rows.

Job Done.

anmoljagetia added a commit to anmoljagetia/Visualization that referenced this issue May 28, 2015

Adds Multiselect to the Table Widget
Fixes hpcc-systemsGH-427

Signed-off-by: Anmol Jagetia <anmoljagetia@gmail.com>

anmoljagetia added a commit to anmoljagetia/Visualization that referenced this issue May 28, 2015

Adds Multiselect to the Table Widget
Fixes hpcc-systemsGH-427

Signed-off-by: Anmol Jagetia <anmoljagetia@gmail.com>

anmoljagetia added a commit to anmoljagetia/Visualization that referenced this issue May 28, 2015

Adds Multiselect to the Table Widget
Fixes hpcc-systemsGH-427

Signed-off-by: Anmol Jagetia <anmoljagetia@gmail.com>

anmoljagetia added a commit to anmoljagetia/Visualization that referenced this issue May 28, 2015

Adds Multiselect to the Table Widget
Fixes hpcc-systemsGH-427

Signed-off-by: Anmol Jagetia <anmoljagetia@gmail.com>

anmoljagetia added a commit to anmoljagetia/Visualization that referenced this issue May 29, 2015

Adds Multiselect to the Table Widget
Fixes hpcc-systemsGH-427

Signed-off-by: Anmol Jagetia <anmoljagetia@gmail.com>

anmoljagetia added a commit to anmoljagetia/Visualization that referenced this issue May 29, 2015

Adds Multiselect to the Table Widget
Fixes hpcc-systemsGH-427

Signed-off-by: Anmol Jagetia <anmoljagetia@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment