New in 1.30.0

isOnCurrentPath(page)

Returns whether a page is either the current page or an ancestor of the current page. 

Params

page (Obj) – The Obj instance to be checked.

Returns

boolean

Example

Conditionally mark a navigation item as active: