added a module system
This commit is contained in:
@@ -692,7 +692,7 @@ local methods = {
|
||||
self.isSorted = nil
|
||||
self:SetSelectedRecord(nil, true)
|
||||
|
||||
sort(self.records, function(a, b) return Aux.sort.multi_lt(a.search_signature, b.search_signature, tostring(a), tostring(b)) end)
|
||||
sort(self.records, function(a, b) return Aux.sort.multi_lt({a.search_signature, tostring(a)}, {b.search_signature, tostring(b)}) end)
|
||||
|
||||
local records = self.records
|
||||
if getn(records) == 0 then return end
|
||||
|
||||
@@ -176,6 +176,13 @@ local methods = {
|
||||
st.sortInfo.col = abs(defaultCol or 1)
|
||||
st.sortInfo.ascending = not defaultCol or defaultCol > 0
|
||||
st.updateSort = true
|
||||
for _, headCol in st.headCols do
|
||||
if value then
|
||||
headCol:EnableMouse(true)
|
||||
else
|
||||
headCol:EnableMouse(false)
|
||||
end
|
||||
end
|
||||
st:RefreshRows()
|
||||
end,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user