Sha256: 69587499f81b6f5be7ab04fbfde885a71d856529a3717dbf676b1eeb145e888d

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

module Plutonium
  module UI
    module DynaFrame
      class Host < Plutonium::UI::Component::Base
        include Phlex::Rails::Helpers::TurboFrameTag

        def initialize(src:, loading:, id: SecureRandom.hex, **attributes)
          @id = id
          @src = src
          @loading = loading
          @attributes = attributes
        end

        def view_template(&)
          turbo_frame_tag(@id, src: @src, loading: @loading, **@attributes, class: "dyna", refresh: "morph", &)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plutonium-0.15.13 lib/plutonium/ui/dyna_frame/host.rb
plutonium-0.15.12 lib/plutonium/ui/dyna_frame/host.rb