Sha256: 076cbb029a9b0270c72b2054203e76ca785f1dc24e8178f28534d24df06a22ac

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

module Phlex
	module Turbo
		class Frame < Phlex::HTML
			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

4 entries across 4 versions & 1 rubygems

Version Path
phlex-0.5.3 lib/phlex/turbo/frame.rb
phlex-0.5.2 lib/phlex/turbo/frame.rb
phlex-0.5.1 lib/phlex/turbo/frame.rb
phlex-0.5.0 lib/phlex/turbo/frame.rb