Sha256: 667fff67041208796e2cf9ffb85caee58fc6a8cf6f8a7271e6cca88cd0332f94

Contents?: true

Size: 629 Bytes

Versions: 6

Compression:

Stored size: 629 Bytes

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:floating_card) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :pattern_drawer

  page_title 'Floating Card'
  indented_grid do
    button icon: :open_in_new do
      event :click do
        toggle_visibility :card
      end
    end
    content id: :card, hidden: true, float: true do
      card do
        media do
          title "Hi I'm floating"
          button icon: :close do
            event :click do
              hide :card
            end
          end
        end
      end
    end
    attach :code, file: __FILE__
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/patterns/floating_card.pom
voom-presenters-2.1.0 app/demo/patterns/floating_card.pom
voom-presenters-2.0.3 app/demo/patterns/floating_card.pom
voom-presenters-2.0.2 app/demo/patterns/floating_card.pom
voom-presenters-2.0.1 app/demo/patterns/floating_card.pom
voom-presenters-2.0.0 app/demo/patterns/floating_card.pom