Page MenuHomePhabricator

Proposal for ability to move sort icon for tables with "colspan"-ed/"rowspan"-ed header rows
Closed, ResolvedPublic

Description

Author: bud0011

Description:
I apologize if this already exists in this bugzilla. The idea came from [http://wikirby.info/wiki/User:Vellidragon Vellidragon of WiKirby].

The proposal i am making (if it doesn't already exist) is one to allow wiki-code implementation control over the placement of the sort icons used in the javascript class "sortable".

In the example of the attached png, a 5-column/2-row set up like this

{| class="sortable"
|- <!-- row 1-->
|  rowspan="2" | a
|  rowspan="2" | b
|  colspan="3" | c
|- <!-- row 2 -->
|  c1
|  c2
|  c3
|-
...
|-
|}

what is being proposed is the ability to move the sort icon down from row 1 to row 2, so it falls on cells with content "c1", "c2" and "c3".

Details

Reference
bz28241

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:33 PM
bzimport set Reference to bz28241.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

In the example of the attached png, a 5-column/2-row set up like this

Where's the attachment?

bud0011 wrote:

velli's sorting idea

velli's sorting idea for bugid=28241.

Attached:

velli_s_sorting_idea.png (133×615 px, 5 KB)

bud0011 wrote:

sorry. Thought i added an attachment.

matmarex set Security to None.
matmarex removed a subscriber: Unknown Object (MLST).
MatthiasDD claimed this task.
MatthiasDD added a subscriber: MatthiasDD.

Thee reason is, that bud0011 used | instead ! and so no <TH> generated. The function buildHeaders() use in headers the last row with the most columns.

This example works fine:

{| class="sortable"
|- <!-- row 1-->
!  rowspan="2" | a
!  rowspan="2" | b
!  colspan="3" | c
|- <!-- row 2 -->
!  c1
!  c2
!  c3
|-
...
|}