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

Need default text for input fields #12

Closed
markrickert opened this issue Jul 27, 2015 · 2 comments
Closed

Need default text for input fields #12

markrickert opened this issue Jul 27, 2015 · 2 comments

Comments

@markrickert
Copy link
Collaborator

The new text fields addition is awesome and I can set a placeholder, but I also need to set a default text on the text field. For instance:

rmq.app.alert(
  title: "Text Field", 
  message: "My style is :input", 
  style: :input, 
  placeholder: "whatever",
  default_text: "My Default Text") do |action_type, fields|
  puts "you entered '#{fields[:text].text}"
end
@derekgreenberg
Copy link
Contributor

default_text should be a property to set in the fields argument when using the :custom style.

@kapso
Copy link

kapso commented Aug 14, 2015

So does that mean the following wont work, since the style is not :custom

... style: :input, fields: { default_text: "38383" })

@GantMan GantMan closed this as completed Dec 5, 2015
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

No branches or pull requests

4 participants