ProMotion icon indicating copy to clipboard operation
ProMotion copied to clipboard

Support a block for table cell actions

Open markrickert opened this issue 10 years ago • 2 comments

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`)

markrickert avatar Dec 11 '14 15:12 markrickert

:+1: I would love for this to be implemented.

aesmail avatar Dec 12 '14 08:12 aesmail

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.

jamonholmgren avatar Dec 12 '14 21:12 jamonholmgren