mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
moebius#342: Columns are not sorted correctly (Natural Sort algorithm)
Issue #31 https://github.com/MoonchildProductions/moebius/pull/342
This commit is contained in:
parent
6d865bfda3
commit
8a1405d8b9
8 changed files with 218 additions and 35 deletions
|
|
@ -733,6 +733,20 @@ function showColumn(id, state) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle sort direction on a column by clicking on the column header.
|
||||
*
|
||||
* @param {String} id
|
||||
* The uniqueId of the given column.
|
||||
*/
|
||||
function clickColumnHeader(id) {
|
||||
let columns = gUI.table.columns;
|
||||
let column = columns.get(id);
|
||||
let header = column.header;
|
||||
|
||||
header.click();
|
||||
}
|
||||
|
||||
/**
|
||||
* Show or hide all columns.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue