Sha256: 63344f2478cb3ce3f68bf80990a092ef49d53d845c5ea115960ca64650bc46fa

Contents?: true

Size: 498 Bytes

Versions: 36

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

module Satis
  module Menu
    class Component < Satis::ApplicationComponent
      # renders_many :tabs, Tab::Component
      attr_reader :menu, :icon, :icon_id, :strategy

      def initialize(menu, icon: nil, icon_id: nil, strategy: "fixed")
        super
        @menu = menu
        @icon = icon || "fa-solid fa-ellipsis"
        @icon_id = icon_id
        @strategy = strategy
      end

      def render?
        menu.items.present?
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
satis-2.1.43 app/components/satis/menu/component.rb
satis-2.1.42 app/components/satis/menu/component.rb
satis-2.1.41 app/components/satis/menu/component.rb
satis-2.1.40 app/components/satis/menu/component.rb
satis-2.1.39 app/components/satis/menu/component.rb
satis-2.1.38 app/components/satis/menu/component.rb
satis-2.1.37 app/components/satis/menu/component.rb
satis-2.1.36 app/components/satis/menu/component.rb
satis-2.1.35 app/components/satis/menu/component.rb
satis-2.1.33 app/components/satis/menu/component.rb
satis-2.1.31 app/components/satis/menu/component.rb
satis-2.1.30 app/components/satis/menu/component.rb
satis-2.1.29 app/components/satis/menu/component.rb
satis-2.1.28 app/components/satis/menu/component.rb
satis-2.1.27 app/components/satis/menu/component.rb
satis-2.1.26 app/components/satis/menu/component.rb
satis-2.1.24 app/components/satis/menu/component.rb
satis-2.1.23 app/components/satis/menu/component.rb
satis-2.1.22 app/components/satis/menu/component.rb
satis-2.1.21 app/components/satis/menu/component.rb