Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-ASelected

  • singleton
  • readonly

The component adds selected class to <a element if the href attribute of the element will contain URL address from the web browser. It's targeted for public websites.

Configuration:

  • class {String} is a class name for selected element (default: selected)
  • selector {String} is a jQuery selector (default: a)
  • attr {String} attribute for comparing (default: href)
  • strict {Boolean} enables strict comparing of URL address (default: false)

Author

You can’t perform that action at this time.