iruby icon indicating copy to clipboard operation
iruby copied to clipboard

allow user to specify value for input forms

Open sethfarns opened this issue 8 years ago • 2 comments

Often IRuby input users will want their forms to be prepopulated with what they entered the last time--can you add the options for users to specify that value, such as:

data = IRuby.form do input :my_input, label: 'Enter your input', value: 'Default value' end

sethfarns avatar Sep 13 '16 18:09 sethfarns

Do you want to supply a default, or do you want the browser to suggest previous values that had been used in that input?

kylekyle avatar Sep 16 '16 18:09 kylekyle

You can specify default values with :default, but see #122.

jeffyjefflabs avatar Feb 18 '17 23:02 jeffyjefflabs