History log of /yui3/src/datatable/js/head.js
Revision Date Author Comments Expand
53c97f474022b2633bdeccab063f518c4015f27a 13-Mar-2012 Luke Smith <lsmith@yahoo-inc.com>

Clean up module vs class descriptions, +@since 3.5.0 Moved the lengthy text from the module description to the class description so the module page would look cleaner. Added note for each class extension to point readers to the DataTable class for docs on the APIs contributed by this class, since they all have @for DataTable.

b2c3f7ee9595487fa2c245134423177b4421db5d 05-Mar-2012 Luke Smith <lsmith@yahoo-inc.com>

Add back compat for field and id column configs core.js added the back compat. The others share an update of changing references of col._yuid to col.id.

756dfc5aaed48f143d245b354768bc325f58ca3a 01-Mar-2012 Luke Smith <lsmith@yahoo-inc.com>

Add scope attribute to headers

8a6a44314c3b8b5125191793d3f3e0baa8d31b7c 29-Feb-2012 Luke Smith <lsmith@yahoo-inc.com>

Add column _id as data attribute in markup This makes it easier to tie the header clicks to the column configs for sorting, and it makes it possible for scrolling DT's to duplicate headers and relay fixed header clicks to the sort operation.

aa183dc1d529080100b0bab8eda249454fe0a9ba 21-Feb-2012 Luke Smith <lsmith@yahoo-inc.com>

Declare first header column via class Can't rely on .yui3-datatable-header:first-child because nested headers can include a rowspan first column, which makes the first th in the next row (which is not along the left edge of the table) lose its left border. Irritatingly, webkit did not behave correctly (hide the border), so I thought it was a problem common to the other browsers. Clearly, bias was in play.

cbd1c850256eb95dbf47fbaa52e294346aa05de5 18-Feb-2012 Luke Smith <lsmith@yahoo-inc.com>

Move col._parent assignment to Core Needed for getColumn.

d6e29a74bc75003aba4b292a76e9f581648f954a 15-Feb-2012 Luke Smith <lsmith@yahoo-inc.com>

Remove all traces of aria. SRs read better without Sad state of affairs, but NVDA and VoiceOver read the table better when no aria roles are assigned. Ticket #2531426

98c5417a3887b19a2b5e7e4eb790663d74c31240 14-Feb-2012 Luke Smith <lsmith@yahoo-inc.com>

+col.cellTemplate and headerTemplate support For column level control over the cell rendering, to allow implementer to render some body cells as <th>s

f39a00618075d3d23264518f0a533e38e5b78e53 29-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Underscore-prefix added column props. Fix rowClass Also update API docs for formatter object properties. The API docs described the ability for formatters to add classes to the row, but the functionality was broken by other code tweaks during dev. Code and API docs updated to restore the functionality.

99ce7146615ea9b6d1c15c1c6ddb695fd2613d40 28-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Typo fix for column className config

96d244052f752c6f3eb40b7b2a382cc5ee42f19d 27-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Add support for className column config className is added to the row template, obviating the need for a column formatter just to add a class to the <td>. This is used in datatable-sort, and will likely also be used in datatable-edit (or whatever the module is called).

67f9d521f66b7ed61ab64c26dd3602e6a4dcda57 25-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Add headers to nested header `<th>`s Screen readers still hate my markup for this, but we'll get it worked out soon.

932d7ebf70bd2db97236675c4c2e3ab59dd4fe55 24-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Add row, columnheader, gridcell roles, +scope

f8dd5569a14fbf6cf9e64bf54ff0df1752dd33b4 24-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Review feedback #3 (from Satyam) * typo in getRow * move caption and summary attr => _uiSet* to _UI_ATTRS * rename {classes} placeholder {className} * header cells get column class as well * header cells get yui3-datatable-header class * data cells get yui3-datatable-cell class * Core now assigns columns a _id which is name, key, or yuid w/ uniqueness counter * column class names now yui3-datatable-col-foo (added -col-) * use toJSON() to get data for the formatters * replace CSS targeting tags with classes

201232b90752c6d505c32c25b94ba1c66e41f256 19-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Remove backslash escaping in `code _snippets` Not needed in the latest yuidoc

fc898f11f7bdfeda4964ea9d2d1d1ad770a9fdbd 12-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Remove liner divs. Reduce CSS. Add skinnable:true

1a40b51b558814291aa784dfd7335004602428ce 10-Jan-2012 Luke Smith <lsmith@yahoo-inc.com>

Move tbody,foot,head creation into Core It simplifies logic to have the Views working with the table sections rather than the table itself. Unrelated, renamed _uiUpdateWidth to _uiSetWidth to override the Widget method that just set dims on the boundingBox.

905fa8d73d85ef7f039d5cc0d17db14f1fdb1407 23-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Loosen search for existing thead It was looking for an existing thead with the DT class on it, but ANY thead would need to be replaced. Options were: 1. Accept only an appropriately classed thead and replace any other thead, or 2. Accept any thead and use it rather than creating a new one. I chose the latter, but may change my mind later.

1080d9c735088a474affe30611ae889315840a17 23-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Clean up PE plumbing, +column mutation Baseline handling of columns change is to rerender the thead. Optimized handling can be relegated to a plugin. If render() finds an existing, appropriately classed thead, it will skip rendering and use that one.

e0a1afd287c016be5722249b10ba81684f33886b 20-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Finish API docs for current API There will be more. Oh, so much more.

cfb2dc43f7aba18c4c6b0db07ca060089bd2e670 20-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Add API docs and other minor code updates.

b30dbdf0ef8772c980fc59f2d2015a295c0b4dc3 14-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Add `getClassName` and use `container`/`modelList`

deb753fedac28c24a82440a4f7ca53df8a72a124 12-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Simplify stack processing. Instead of managing two stacks, one for the row and one for the column index, just use one stack and have each entry store the row and index.

d15134141197c4fc93eb6094020e03eb72aa8d73 12-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Decouple column parsing, +nested cols The parsing of column array data was in Core, but was parsed into three different forms: 1) for column access from Core's get('columns.<key>') 2) for column prep for header rendering 3) for column prep for body rendering Now the columns are passed to the views to do with as they will, and Core only does what is needed for #1. Also, parsing nested headers efficiently is a pain in the ass. The 'children' config doesn't allow implementers to choose which cells get rowspan when the number of header rows is greater than the number of column descendant levels. As is done in 3.4.1, parent cells are always rowspan 1. I prefer to have data related columns have rowspan 1, but the logic to support that with the "children" config would be crazy complex. Implementers can move stuff around in `table.head.columns` before `render()` if they want different cell placement and spanning.

0e7d399f99fcb097a927af7e6588f393740585a2 12-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

+getCell and getRow. Grouped, alphabetized methods Conflicts (resolved) src/datatable/js/pe.js

79fac3c43e396f54a5fb368ac33ff7c21df23397 12-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

+ column.formatter & column.nodeFormatter Other bug fixes. Can render from array. Column ordering works. Movin right along.

a3e011a6940a2707d43148e12f3d3cd6fd388794 12-Dec-2011 Luke Smith <lsmith@yahoo-inc.com>

Initial drop of DataTable rearchitecture Renders a table from supplied columns and data as a ModelList with Model instances. A lot more plumbing in place, but not yet exercised. Progressive enhancement extension in src/pe.js, but doesn't have build files yet.