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-Selected

The component can set a specific class to a specific element according to the simple condition.

Configuration:

Example: data-jc-config="class:selected;selector:a"

  • class {String} (optional) is a class name for selected element
  • selector {String} (optional) is a jQuery selector

Usage:

Each nested element according to the selector must have defined data-if attribute. It works only with strings values.

### Author