Reinforce that this is a Form component

This commit is contained in:
Rafael Mendonça França 2012-01-30 14:29:29 -02:00
parent 99d1b976b0
commit 0c13441a51
1 changed files with 9 additions and 9 deletions

View File

@ -86,9 +86,9 @@ You can create new _Form components_ using the wrappers API as in the following
config.wrappers do |b| config.wrappers do |b|
b.use :placeholder b.use :placeholder
b.use :label_input b.use :label_input
b.use :tag => :div, :class => 'separator' do |ba| b.use :tag => :div, :class => 'separator' do |component|
ba.use :hint, :tag => :span, :class => :hint component.use :hint, :tag => :span, :class => :hint
ba.use :error, :tag => :span, :class => :error component.use :error, :tag => :span, :class => :error
end end
end end
``` ```
@ -101,9 +101,9 @@ If you want to customize the custon _Form components_ on demand you can give it
config.wrappers do |b| config.wrappers do |b|
b.use :placeholder b.use :placeholder
b.use :label_input b.use :label_input
b.use :my_wrapper, :tag => :div, :class => 'separator' do |ba| b.use :my_wrapper, :tag => :div, :class => 'separator' do |component|
ba.use :hint, :tag => :span, :class => :hint component.use :hint, :tag => :span, :class => :hint
ba.use :error, :tag => :span, :class => :error component.use :error, :tag => :span, :class => :error
end end
end end
``` ```
@ -153,9 +153,9 @@ default values to `false` or use the `optional` method:
config.wrappers :placeholder => false do |b| config.wrappers :placeholder => false do |b|
b.use :placeholder b.use :placeholder
b.use :label_input b.use :label_input
b.use :tag => :div, :class => 'separator' do |ba| b.use :tag => :div, :class => 'separator' do |component|
ba.optional :hint, :tag => :span, :class => :hint component.optional :hint, :tag => :span, :class => :hint
ba.use :error, :tag => :span, :class => :error component.use :error, :tag => :span, :class => :error
end end
end end
``` ```