Web Component: j-Selected
j-Selected
The component can set a specific class to a specific element according to the simple condition.
- jComponent v19|v20
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:- ifand it means- data-if)
- attror- {String}attribute for secondary comparing (default:- orand it means- data-or)
- datasource- {String}a path to data-source for list of items
- delay- {Number}a delay for rel-selecting of value (default:- 50)
Usage:
Each nested element according to the selector must have defined data-if attribute. It works only with strings values.
Author
- Peter Širka petersirka@gmail.com
- License
Created
16. june 2018
Updated
05. march 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
No
Author
Peter Širka
Email
petersirka@gmail.com

