Sha256: 7b63ec0e73e66f3d550ebb658375a754bf2540cceaf33fe623716e04e0164326

Contents?: true

Size: 630 Bytes

Versions: 12

Compression:

Stored size: 630 Bytes

Contents

require_relative '../helpers/indented_grid'

Coprl::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

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.11 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.10 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.9 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.8 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.7 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.6 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.5 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.4 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.3 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.2 app/demo/patterns/floating_card.pom
coprl-3.0.0.beta.1 app/demo/patterns/floating_card.pom