Ticket #2531712 (assigned enhancement)

Reporter


Luke Smith
Opened: 01/31/12
Last modified: 03/25/13
Status: assigned
Type: enhancement

Owner


Anthony Pipkin
Target Release: BACKLOG
Priority: P3 (normal)
Summary: Add registered types or at least formatters for DataTable
Description:

Desired outcome:


Y.DataTable.Formatter.checkbox = function (o) {
var guid = Y.guid(),
name = o.column.checkboxName || o.column._id,
checked = "checkedKey" in o.column ? !!o.data[o.column.checkedKey] : !!o.value;

return '<input type="checkbox" id="' + guid + '" class="' + this.getClassName('checkbox') + '" name="' + name + '"' +
(checked ? ' checked="checked"' : '') + '>';
};

var table = new Y.DataTable({
columns: [ { key: id, formatter: 'checkbox' }, ... ],
data
});

Or better would be 'type', that would add format output for the header cell as well. That would be harder to implement give the pr time constraints.

Type: enhancement Observed in Version: 3.5.0pr2
Component: DataTable Severity: S3 (normal)
Assigned To: Anthony Pipkin Target Release: BACKLOG
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Luke Smith

YUI Contributor

Posted: 01/31/12
  • sprint changed from sprint 3

Can't commit to this for pr3, but I'll try to get it in just the same.

Luke Smith

YUI Contributor

Posted: 03/19/12
  • milestone changed from 3.5.0 to 3.6.0

Luke Smith

YUI Contributor

Posted: 04/5/12
  • sprint changed to backlog

Jenny Donnelly

YUI Developer

Posted: 07/24/12
  • milestone changed from 3.6.0 to 3.NEXT

Moving from 3.6.0 backlog to 3.NEXT.

Jenny Donnelly

YUI Developer

Posted: 09/19/12
  • milestone changed from 3.NEXT to BACKLOG

Moving from 3.NEXT to BACKLOG.

Anthony Pipkin

YUI Developer

Posted: 03/25/13