app/demo/components/snackbar.pom in coprl-3.0.0.beta.5 vs app/demo/components/snackbar.pom in coprl-3.0.0.beta.6

- old
+ new

@@ -6,15 +6,15 @@ attach :component_drawer page_title 'Snackbar' indented_grid do title 'On Page' - body 'You can attach a snackbar on the server side and will render after load.' + body 'You can invoke or attach a snackbar on the server side and will render after load.' snackbar 'Top Level Important Information!' + # This is the same as above -- see POM at end of file + # attach :snackbar_attached - attach :snackbar_attached - title 'As Event' button 'Show Snackbar', id: :show_snackbar do event :click do snackbar 'You clicked snackbar the button!' end @@ -31,5 +31,11 @@ end end attach :code, file: __FILE__ end + +# Coprl::Presenters.define(:snackbar_attached) do +# title 'In Attached' +# body 'This can be done in an attached presenter as well' +# snackbar 'Attached Snackbar Displayed!' +# end