Sha256: 5ea1e1bdbf25833759103e7fe12e1ed55947b43c529452a17bcf05cffba979de

Contents?: true

Size: 610 Bytes

Versions: 157

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbTimeline
    class Timeline
      include Playbook::Props

      partial "pb_timeline/timeline"

      prop :orientation, type: Playbook::Props::Enum,
                         values: %w[vertical horizontal],
                         default: "horizontal"
      prop :show_date, type: Playbook::Props::Boolean,
                       default: false

      def classname
        generate_classname("pb_timeline_kit", orientation, date_class)
      end

    private

      def date_class
        show_date ? "with_date" : nil
      end
    end
  end
end

Version data entries

157 entries across 157 versions & 1 rubygems

Version Path
playbook_ui-5.3.0 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.2.0.pre.alpha4 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.2.0.pre.alpha3 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.2.0.pre.alpha2 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.2.0 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.1.0 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.0.3 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.0.2 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.0.1.pre.beta app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.1.0.pre.alpha4 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.1.0.pre.alpha2 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.1.0.pre.alpha1 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.0.1 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-5.0.1.pre.alpha1 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-4.18.1.pre.alpha1 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-4.18.1 app/pb_kits/playbook/pb_timeline/timeline.rb
playbook_ui-4.18.0 app/pb_kits/playbook/pb_timeline/timeline.rb