app/demo/events/actions/clear.pom in voom-presenters-0.2.0 vs app/demo/events/actions/clear.pom in voom-presenters-2.0.0
- old
+ new
@@ -3,20 +3,22 @@
attach :top_nav
attach :events_drawer
indented_grid do
heading 'Clear'
- body 'Allows you to clear an input control.',
+ body 'Allows you to clear a component.',
'Takes the id of the element to clear.'
text_field id: :input_to_clear do
label 'Input to clear'
- value 'Clear me'
+ value 'Value to clear'
end
+ subtitle 'Text to clear', id: :text_to_clear
+
button 'clear' do
event :click do
- clear :input_to_clear
+ clear :input_to_clear, :text_to_clear
end
end
end
attach :code, file: __FILE__
end