Sha256: 0643327e80ab33458dfe3274b451571af800f5a5ace2ee7a8ece41df4e68cb59
Contents?: true
Size: 484 Bytes
Versions: 47
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true class Avo::EmptyStateComponent < Avo::BaseComponent prop :message prop :view_type, default: :table do |value| value&.to_sym end prop :add_background, default: false prop :by_association, default: false def text @message || locale_message end def view_type_svg "avo/#{@view_type}-empty-state" end private def locale_message helpers.t @by_association ? "avo.no_related_item_found" : "avo.no_item_found" end end
Version data entries
47 entries across 47 versions & 1 rubygems