Enhancement #2882

Special DataTable sorting functions

Added by Davide Principi about 5 years ago. Updated about 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:v1.6.1
Resolution: NEEDINFO:No

Description

The new DataTables version has a plugin architecture, that allows defining special sorting functions.

We need, at least
  • file-size
  • percentage

And more may be added in the future.

Upgrading to version 1.10.2 would ease the integration of other nice features.


Related issues

Related to NethServer 6 - Bug #2698: Dashboard mail quota panel: order by size is wrong CLOSED

Associated revisions

Revision 2317e06b
Added by Davide Principi about 5 years ago

Table view: sort DataTable by file-size, percent, ip-address. Refs #2882

The sorting function can be set by passing an array for the column in
setColumns(). For instance

$columns = array(
'Key',
array(
'name' => 'size',
'columnDefs' => array('type' => 'file-size')
),
...
);

History

#1 Updated by Davide Principi about 5 years ago

  • Related to Bug #2698: Dashboard mail quota panel: order by size is wrong added

#2 Updated by Davide Principi about 5 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#3 Updated by Davide Principi about 5 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

Test case

See related issue #2698

#4 Updated by Davide Principi about 5 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

Waiting for #2698

#5 Updated by Davide Principi about 5 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

VERIFIED #2698

#6 Updated by Davide Principi about 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Also available in: Atom PDF