Sha256: 0ffbf3be124b94dae1c5ab10f2aefa555a2279d79b2b03d98d0248c2b44698c1

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

require 'glimmer/opal/element_proxy'

module Glimmer
  module Opal
    class IframeProxy < ElementProxy
      attr_reader :url
      
      def url=(value)
        @url = value
        redraw
      end
    
      def dom
        iframe_id = id
        iframe_url = url
        @dom ||= DOM {
          iframe(src: iframe_url, frameBorder: 0) {
          }
        }
      end      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
glimmer-dsl-opal-0.0.9 lib/glimmer/opal/iframe_proxy.rb
glimmer-dsl-opal-0.0.8 lib/glimmer/opal/iframe_proxy.rb
glimmer-dsl-opal-0.0.7 lib/glimmer/opal/iframe_proxy.rb
glimmer-dsl-opal-0.0.6 lib/glimmer/opal/iframe_proxy.rb
glimmer-dsl-opal-0.0.5 lib/glimmer/opal/iframe_proxy.rb