Sha256: b5b0cfb18c6263f6b4500d3a97b5f7c6fac68be970b7bed677e65561f0ae2e9c

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Phlex
	module Turbo
		class Frame < Phlex::HTML
			include Experimental

			register_element :turbo_frame

			def initialize(src:, loading:, disabled:, target:, autoscroll:)
				@src = src
				@loading = loading
				@disabled = disabled
				@target = target
				@autoscroll = autoscroll
			end

			def template(&content)
				turbo_frame(src: @src, loading: @loading, disabled: @disabled, target: @target, autoscroll: @autoscroll, &content)
			end
		end
	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phlex-1.0.1 lib/phlex/turbo/frame.rb
phlex-1.1.1 lib/phlex/turbo/frame.rb
phlex-1.1.0 lib/phlex/turbo/frame.rb
phlex-1.0.0 lib/phlex/turbo/frame.rb
phlex-1.0.0.rc2 lib/phlex/turbo/frame.rb
phlex-1.0.0.rc1 lib/phlex/turbo/frame.rb