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.1.2.pre2 app/components/avo/dashboards/divider_component.rb
avo-2.1.2.pre1 app/components/avo/dashboards/divider_component.rb
avo-2.1.1 app/components/avo/dashboards/divider_component.rb
avo-2.1.0 app/components/avo/dashboards/divider_component.rb
avo-2.0.0 app/components/avo/dashboards/divider_component.rb