Class: NavListLinkDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- NavListLinkDrop
- Includes:
- ModeDependentDropConcerns
- Defined in:
- app/drops/nav_list_link_drop.rb
Overview
Represents a link on a NavListDrop.
Instance Method Summary collapse
-
#active? ⇒ Boolean
If this is the active link.
-
#child_active? ⇒ Boolean
deprecated
Deprecated.
No longer used
- #children ⇒ Array<NavListLinkDrop>
-
#conditionally_visible? ⇒ Boolean
If this link is only conditionally visible to the current logged in user/member.
-
#home_page? ⇒ Boolean
deprecated
Deprecated.
No longer used
-
#identifier ⇒ String
Generated from either the slug, or the id of an object it points to or the external url.
- #label ⇒ String
-
#nested_child_active? ⇒ Boolean
If any of it's descendants is the active link.
-
#open_in_new_tab ⇒ Boolean
Should the link open in a new tab?.
-
#page ⇒ PageDrop
This is only present if the link points to a site's page.
-
#type ⇒ String
One of 'home', 'page', 'catalog', 'product_category', 'product', 'list', 'blog', 'members', 'external', 'support', 'terms', 'course', 'site_group', 'page_anchor'.
-
#url ⇒ String
The URL this link points to.
Instance Method Details
#active? ⇒ Boolean
If this is the active link
#child_active? ⇒ Boolean
No longer used
If one of it's direct descendants is the active link
#children ⇒ Array<NavListLinkDrop>
#conditionally_visible? ⇒ Boolean
If this link is only conditionally visible to the current logged in user/member
#home_page? ⇒ Boolean
No longer used
If this link points to the home page of the site
#identifier ⇒ String
Generated from either the slug, or the id of an object it points to or the external url
#label ⇒ String
#nested_child_active? ⇒ Boolean
If any of it's descendants is the active link
#open_in_new_tab ⇒ Boolean
Should the link open in a new tab?
#page ⇒ PageDrop
This is only present if the link points to a site's page
#type ⇒ String
One of 'home', 'page', 'catalog', 'product_category', 'product', 'list', 'blog', 'members', 'external', 'support', 'terms', 'course', 'site_group', 'page_anchor'