Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a block for table cell actions #583

Open
markrickert opened this issue Dec 11, 2014 · 2 comments
Open

Support a block for table cell actions #583

markrickert opened this issue Dec 11, 2014 · 2 comments

Comments

@markrickert
Copy link
Contributor

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

@aesmail
Copy link

aesmail commented Dec 12, 2014

👍
I would love for this to be implemented.

@jamonholmgren
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants