pass attributes through FilteredList

develop
Myk Taylor 2023-02-02 20:42:23 -08:00
parent 2316615763
commit 345b7d78cb
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

@ -1897,6 +1897,16 @@ function FilteredList:init(info)
return info.on_submit2(self:getSelected()) return info.on_submit2(self:getSelected())
end end
end end
if info.on_double_click then
self.list.on_double_click = function()
return info.on_double_click(self:getSelected())
end
end
if info.on_double_click2 then
self.list.on_double_click2 = function()
return info.on_double_click2(self:getSelected())
end
end
self.not_found = Label{ self.not_found = Label{
visible = true, visible = true,
text = info.not_found_label or 'No matches', text = info.not_found_label or 'No matches',