Sha256: 06df4bf21ba6082fa282d6151df23bd2ec0f7772c24eef7043cf3f6ee0f4bf68

Contents?: true

Size: 455 Bytes

Versions: 6

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbPopover
    class Popover
      include Playbook::Props
      partial "pb_popover/popover"

      prop :position
      prop :trigger_element_id
      prop :tooltip_id
      prop :offset, type: Playbook::Props::Boolean, default: false

      def popover_offset
        offset ? [0, 8] : [0, 0]
      end

      def classname
        generate_classname("pb_popover_kit")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playbook_ui-4.2.0 app/pb_kits/playbook/pb_popover/popover.rb
playbook_ui-4.1.2 app/pb_kits/playbook/pb_popover/popover.rb
playbook_ui-4.1.1 app/pb_kits/playbook/pb_popover/popover.rb
playbook_ui-4.1.0 app/pb_kits/playbook/pb_popover/popover.rb
playbook_ui-4.0.1 app/pb_kits/playbook/pb_popover/popover.rb
playbook_ui-4.0.0 app/pb_kits/playbook/pb_popover/popover.rb