From 547dc07be37c03f541779a53ff7595c093eb1d89 Mon Sep 17 00:00:00 2001 From: fkloft Date: Fri, 29 Aug 2014 17:46:44 +0200 Subject: [PATCH] [portals-list] updated comment --- plugins/portals-list.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/portals-list.user.js b/plugins/portals-list.user.js index 85ab67ef..d3e26999 100644 --- a/plugins/portals-list.user.js +++ b/plugins/portals-list.user.js @@ -34,11 +34,13 @@ window.plugin.portalslist.filter = 0; * title: String * Name of the column. Required. * value: function(portal) - * The raw value of this field. Can by anything. Required, but can be dummy implementation if sortValue and format are implemented. + * The raw value of this field. Can by anything. Required, but can be dummy implementation if sortValue and format + * are implemented. * sortValue: function(value, portal) * The value to sort by. Optional, uses value if omitted. The raw value is passed as first argument. * sort: function(valueA, valueB, portalA, portalB) - * Custom sorting function. See Array.sort() for details on return value. Both the raw values and the portal objects are passed as arguments. Optional. + * Custom sorting function. See Array.sort() for details on return value. Both the raw values and the portal objects + * are passed as arguments. Optional. Set to null to disable sorting * format: function(cell, portal, value) * Used to fill and format the cell, which is given as a DOM node. If omitted, the raw value is put in the cell. * defaultOrder: -1|1