ProMotion
ProMotion copied to clipboard
Support a block for table cell actions
I think it would be cool to do something like this:
def table_data
[
cells:[
{
title: 'Do Something',
action: proc { App.alert("Shown from a tablecell action block") }
}
]
]
end
(Obviously, this contrived example is using Bubblewrap's App.alert method`)
:+1: I would love for this to be implemented.
Yeah, that would be cool. Pretty simple, too.
Keep in mind there's a fair chance that app developers will introduce memory leaks this way, though. When you close over variables, it can cause problems.