style changes in post

This commit is contained in:
Manuel Simon Hirsig
2016-02-02 19:32:43 +01:00
parent d7af47d1b2
commit 64eac2af58
7 changed files with 171 additions and 218 deletions
+9 -3
View File
@@ -142,9 +142,15 @@ local methods = {
st:RefreshRows()
end,
SetSelection = function(st, rowNum)
st.selected = rowNum
st:RefreshRows()
SetSelection = function(st, predicate)
st:ClearSelection()
for i, rowDatum in st.rowData do
if predicate(rowDatum) then
st.selected = i
st:RefreshRows()
break
end
end
end,
GetSelection = function(st)