Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Sebastian Brudziński
Sebastian BrudzińskiReporter
Nick Reid
Nick Reid(Deactivated)Story Points
5
Original estimate
2d
Time tracking
Components
Sprint
None
Fix versions
Priority
Time Assistant
Time Assistant
Created November 10, 2016 at 8:01 PM
Updated January 17, 2017 at 7:15 PM
Resolved January 17, 2017 at 1:19 PM
For large tables, a user must be able to view some elements regardless of where they appear in the logical order of the table.
To solve this, a standard pattern is to "pin" a column — so that as the user scrolls horizontally the column(s) that are pinned seem to not move, but rather float over other elements. Unless someone wants to dig into the semantics of colgroup.
Since the semantics of generating a table focus on rows, and not columns, an "isPinned" class will need to be added to all table cells that should exhibit this behavior. The markup would look something like this:
<table> <tr> <th class="is-pinned">Name</th> <th>Field</th> <th>Another Field</th> </tr> <tr> <td class="is-pinned">Phone something</td> <td>Foo Bar</td> <td class="number">12</td> </tr> <tr> <td class="is-pinned">Cup blah blah</td> <td>Bar food</td> <td class="number">7</td> </tr> </table>
An ideal solution would only use CSS to pin the table cells — but if javascript is used, it should be applied as an attribute or css directive with the name "isPinned" (and should only work on `<td>` and `<th>`