Module: Avo::Concerns::IsVisible
- Included in:
- BaseResourceTool, Fields::BaseField, Resources::Items::ItemGroup, Resources::Items::Sidebar, Resources::Items::Tab, Resources::Items::TabGroup
- Defined in:
- lib/avo/concerns/is_visible.rb
Instance Attribute Summary collapse
-
#visible ⇒ Object
Returns the value of attribute visible.
Instance Method Summary collapse
Instance Attribute Details
#visible ⇒ Object
Returns the value of attribute visible.
5 6 7 |
# File 'lib/avo/concerns/is_visible.rb', line 5 def visible @visible end |
Instance Method Details
#visible? ⇒ Boolean
7 8 9 10 11 12 |
# File 'lib/avo/concerns/is_visible.rb', line 7 def visible? # Default to true return true if visible.nil? Avo::ExecutionContext.new(target: visible, resource: @resource).handle end |