Skip to content

Added map_action_buttons awesomeness#7

Merged
GantMan merged 1 commit intoGantMan:masterfrom
jamonholmgren:feature/button_templates
May 16, 2015
Merged

Added map_action_buttons awesomeness#7
GantMan merged 1 commit intoGantMan:masterfrom
jamonholmgren:feature/button_templates

Conversation

@jamonholmgren
Copy link
Copy Markdown
Contributor

Ref @kevinvangelder's issue #6 .

You can now do this:

rmq.app.alert title: "My Title", actions: [ "Send Link", "Copy Link", :ok, :delete, :cancel ] do |button_tag|
  case button_tag
  when "Send Link" then puts "sending link!"
  when "Copy Link" then puts "copied link!"
  when :ok then puts "I don't know what that means!"
  when :cancel then puts "canceled!"
  else
  end
end

@jamonholmgren
Copy link
Copy Markdown
Contributor Author

If you pass in a button, it'll just work as expected.

Also, we should change the templates to use this.

@kevinvangelder
Copy link
Copy Markdown

👍 💯

@skellock
Copy link
Copy Markdown
Contributor

👍

@GantMan
Copy link
Copy Markdown
Owner

GantMan commented May 16, 2015

Looks great!

GantMan added a commit that referenced this pull request May 16, 2015
@GantMan GantMan merged commit f2c7b1f into GantMan:master May 16, 2015
@GantMan
Copy link
Copy Markdown
Owner

GantMan commented May 16, 2015

Version 1.1 released!

@jamonholmgren
Copy link
Copy Markdown
Contributor Author

you the man

@jamonholmgren jamonholmgren deleted the feature/button_templates branch May 16, 2015 21:48
@jamonholmgren
Copy link
Copy Markdown
Contributor Author

You're going to wonder how you did without this before, @GantMan . ;)

@GantMan
Copy link
Copy Markdown
Owner

GantMan commented May 16, 2015

yayyy

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants