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