Sha256: 02edf8feee5c57bcb17c635c6dac9b66a107f20e38fa41bffade1cf5bef744f5

Contents?: true

Size: 304 Bytes

Versions: 185

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

class Avo::Dashboards::DividerComponent < ViewComponent::Base
  attr_reader :divider

  delegate :label, to: :divider

  def initialize(divider: nil)
    @divider = divider
  end

  def render?
    @divider.present?
  end

  def invisible?
    @divider.invisible
  end
end

Version data entries

185 entries across 185 versions & 1 rubygems

Version Path
avo-2.21.0 app/components/avo/dashboards/divider_component.rb
avo-2.21.1.pre.pr1476 app/components/avo/dashboards/divider_component.rb
avo-2.21.1.pre.issue1450 app/components/avo/dashboards/divider_component.rb
avo-2.21.1.pre.issue1444 app/components/avo/dashboards/divider_component.rb
avo-2.20.0 app/components/avo/dashboards/divider_component.rb
avo-2.19.0 app/components/avo/dashboards/divider_component.rb
avo-2.18.1 app/components/avo/dashboards/divider_component.rb
avo-2.18.1.pre.1.eagerloaddirs app/components/avo/dashboards/divider_component.rb
avo-2.18.0 app/components/avo/dashboards/divider_component.rb
avo-2.17.1.pre.5.stackedlayout app/components/avo/dashboards/divider_component.rb
avo-2.17.1.pre.4.issue.1342 app/components/avo/dashboards/divider_component.rb
avo-2.17.1.pre.3 app/components/avo/dashboards/divider_component.rb
avo-2.17.1.pre.2.customauthorizationclients app/components/avo/dashboards/divider_component.rb
avo-2.17.1.pre.1.zeitwerk.eager.load.dir app/components/avo/dashboards/divider_component.rb
avo-2.17.0 app/components/avo/dashboards/divider_component.rb
avo-2.16.1.pre.1.nativefields app/components/avo/dashboards/divider_component.rb
avo-2.16.0 app/components/avo/dashboards/divider_component.rb
avo-2.15.3 app/components/avo/dashboards/divider_component.rb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/dashboards/divider_component.rb
avo-2.15.2 app/components/avo/dashboards/divider_component.rb