wv-active-page-regex
Purpose
This tag helper sets an active
class to the element, if the current page path (trimmed and lowercased) matches the provided regex pattern. If no active page present, href
is similarly checked.
Properties
name | description |
---|---|
wv-active-page-regex |
html target: object type: default value: is required: A valid regex pattern to be matched. |
Example
<a wv-active-page-regex='/dev/base-plugin/api/index'>Api Index Page</a>