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.36.2 app/components/avo/dashboards/divider_component.rb
avo-2.36.1 app/components/avo/dashboards/divider_component.rb
avo-2.36.0 app/components/avo/dashboards/divider_component.rb
avo-2.35.0 app/components/avo/dashboards/divider_component.rb
avo-2.34.7.pre.1 app/components/avo/dashboards/divider_component.rb
avo-2.34.6 app/components/avo/dashboards/divider_component.rb
avo-2.34.5 app/components/avo/dashboards/divider_component.rb
avo-2.34.4 app/components/avo/dashboards/divider_component.rb
avo-2.34.4.pre.1 app/components/avo/dashboards/divider_component.rb
avo-2.34.3 app/components/avo/dashboards/divider_component.rb
avo-2.34.2 app/components/avo/dashboards/divider_component.rb
avo-2.34.1 app/components/avo/dashboards/divider_component.rb
avo-2.34.0 app/components/avo/dashboards/divider_component.rb
avo-2.33.3 app/components/avo/dashboards/divider_component.rb
avo-2.33.3.pre.2 app/components/avo/dashboards/divider_component.rb
avo-2.33.3.pre.1 app/components/avo/dashboards/divider_component.rb
avo-2.33.2 app/components/avo/dashboards/divider_component.rb
avo-2.33.1 app/components/avo/dashboards/divider_component.rb
avo-2.33.0 app/components/avo/dashboards/divider_component.rb
avo-2.32.6 app/components/avo/dashboards/divider_component.rb