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.9.2 app/components/avo/resource_sidebar_component.rb
avo-3.9.1 app/components/avo/resource_sidebar_component.rb
avo-3.8.2 app/components/avo/resource_sidebar_component.rb
avo-3.9.0 app/components/avo/resource_sidebar_component.rb
avo-3.8.1 app/components/avo/resource_sidebar_component.rb
avo-3.8.0 app/components/avo/resource_sidebar_component.rb
avo-3.6.4 app/components/avo/resource_sidebar_component.rb
avo-3.6.3 app/components/avo/resource_sidebar_component.rb
avo-3.6.2 app/components/avo/resource_sidebar_component.rb
avo-3.6.1 app/components/avo/resource_sidebar_component.rb
avo-3.6.0 app/components/avo/resource_sidebar_component.rb
avo-3.5.8 app/components/avo/resource_sidebar_component.rb
avo-3.5.7 app/components/avo/resource_sidebar_component.rb
avo-3.5.6 app/components/avo/resource_sidebar_component.rb
avo-3.5.6.beta1 app/components/avo/resource_sidebar_component.rb
avo-3.5.5 app/components/avo/resource_sidebar_component.rb
avo-3.5.4 app/components/avo/resource_sidebar_component.rb
avo-3.5.3 app/components/avo/resource_sidebar_component.rb
avo-3.5.2 app/components/avo/resource_sidebar_component.rb
avo-3.5.1 app/components/avo/resource_sidebar_component.rb