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.53.0 app/components/avo/dashboards/divider_component.rb
avo-2.52.0 app/components/avo/dashboards/divider_component.rb
avo-2.49.0 app/components/avo/dashboards/divider_component.rb
avo-2.48.0 app/components/avo/dashboards/divider_component.rb
avo-2.47.0 app/components/avo/dashboards/divider_component.rb
avo-2.46.0 app/components/avo/dashboards/divider_component.rb
avo-2.45.0 app/components/avo/dashboards/divider_component.rb
avo-2.44.0 app/components/avo/dashboards/divider_component.rb
avo-2.43.0 app/components/avo/dashboards/divider_component.rb
avo-2.42.2 app/components/avo/dashboards/divider_component.rb
avo-2.42.1 app/components/avo/dashboards/divider_component.rb
avo-2.42.0 app/components/avo/dashboards/divider_component.rb
avo-2.41.0 app/components/avo/dashboards/divider_component.rb
avo-2.40.0 app/components/avo/dashboards/divider_component.rb
avo-2.39.0 app/components/avo/dashboards/divider_component.rb
avo-2.38.0 app/components/avo/dashboards/divider_component.rb
avo-2.37.2 app/components/avo/dashboards/divider_component.rb
avo-2.37.1 app/components/avo/dashboards/divider_component.rb
avo-2.37.0 app/components/avo/dashboards/divider_component.rb
avo-2.36.3 app/components/avo/dashboards/divider_component.rb