Sha256: bf35d862ddc86fee0ff785d13d01002ffd93b70b4fc9cbce91cce358743c82f7

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::Modal::Component < SolidusAdmin::BaseComponent
  renders_one :actions

  def initialize(title:, close_path: nil, open: false, **attributes)
    @title = title
    @close_path = close_path
    @attributes = attributes
    @attributes[:open] = open
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/modal/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/ui/modal/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/ui/modal/component.rb