app/demo/events/actions/toggle_visiblity.pom in voom-presenters-0.1.13 vs app/demo/events/actions/toggle_visiblity.pom in voom-presenters-0.2.0
- old
+ new
@@ -5,12 +5,13 @@
indented_grid do
heading 'Toggle Visibility'
body 'Allows you to toggle visibility of content on and off on events.',
'Takes the id of the element to toggle.',
- "Optionally takes :on or :off to force visibility."
-
- subheading 'Toggle Visibility'
+ "Optionally takes :on or :off to force visibility.",
+ "`show :toggle_me` **is the same as** `toggle_visibility :toggle_me, on: true`",
+ "`hide :toggle_me` **is the same as** `toggle_visibility :toggle_me, on: false`"
+
button 'toggle visibility' do
event :click do
toggle_visibility :toggle_me
end
end