Sha256: 1b4f63255ae111017b84becd5a7c35467930097552c87e490c947bfeaf60b68d

Contents?: true

Size: 515 Bytes

Versions: 52

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

class Avo::ResourceSidebarComponent < ViewComponent::Base
  attr_reader :resource
  attr_reader :params
  attr_reader :view
  attr_reader :form
  attr_reader :fields
  attr_reader :index

  def initialize(resource: nil, sidebar: nil, index: nil, params: nil, form: nil, view: nil)
    @resource = resource
    @sidebar = sidebar
    @params = params
    @view = view
    @form = form
    @index = index
  end

  def render?
    Avo.license.has_with_trial(:resource_sidebar)
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
avo-3.1.4 app/components/avo/resource_sidebar_component.rb
avo-3.1.3 app/components/avo/resource_sidebar_component.rb
avo-3.1.2 app/components/avo/resource_sidebar_component.rb
avo-3.1.1 app/components/avo/resource_sidebar_component.rb
avo-3.1.0 app/components/avo/resource_sidebar_component.rb
avo-3.0.8 app/components/avo/resource_sidebar_component.rb
avo-3.0.7 app/components/avo/resource_sidebar_component.rb
avo-3.0.6 app/components/avo/resource_sidebar_component.rb
avo-3.0.5 app/components/avo/resource_sidebar_component.rb
avo-3.0.4 app/components/avo/resource_sidebar_component.rb
avo-3.0.3 app/components/avo/resource_sidebar_component.rb
avo-3.0.2 app/components/avo/resource_sidebar_component.rb