Module: Avo::Concerns::VisibleItems

Extended by:
ActiveSupport::Concern
Included in:
Resources::Items::ItemGroup, Resources::Items::Row, Resources::Items::Tab
Defined in:
lib/avo/concerns/visible_items.rb

Instance Method Summary collapse

Instance Method Details

#visible?Boolean

Returns:

  • (Boolean)


11
12
13
14
15
16
17
# File 'lib/avo/concerns/visible_items.rb', line 11

def visible?
  if respond_to?(:visible_on?)
    visible_on?(view) && visible_items.any?
  else
    visible_items.any?
  end
end