Sha256: 18c4eff7e6d120cbf855fe9add1de696e3339da2cb0c090ff23884bda6003494
Contents?: true
Size: 577 Bytes
Versions: 43
Compression:
Stored size: 577 Bytes
Contents
module Plutonium module UI module DynaFrame class Host < Plutonium::UI::Component::Base include Phlex::Rails::Helpers::TurboFrameTag def initialize(src:, loading:, **attributes) @id = attributes.delete(:id) || SecureRandom.alphanumeric(8, chars: [*"a".."z"]) @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
43 entries across 43 versions & 1 rubygems