Sha256: 0f8e4b990fde27af04026a23a697ab758388d17b7cb367ea1f4b0642fefc4127

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

module Avo
  module Dashboards
    class BaseDivider
      attr_reader :label
      attr_reader :invisible
      attr_reader :index

      include Avo::Fields::FieldExtensions::VisibleInDifferentViews

      class_attribute :id

      def initialize(label: nil, invisible: false, index: nil, **args)
        @label = label
        @invisible = invisible
        @index = index

        initialize_visibility args
      end

      def is_divider?
        true
      end

      def is_card?
        false
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avo-2.11.3.pre.3 lib/avo/dashboards/base_divider.rb
avo-2.11.3.pre.2 lib/avo/dashboards/base_divider.rb