Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexbykoff/helmjs
https://github.com/alexbykoff/helmjs
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexbykoff/helmjs
- Owner: alexbykoff
- Created: 2018-01-22T12:30:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-07T08:08:13.000Z (almost 7 years ago)
- Last Synced: 2024-11-09T19:36:30.487Z (2 months ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# How it works
## Core
### .html([*value*], [*selector*])
setter - *chainable*Sets or gets inner HTML of selected elements.
---
### .text([[*value*], [*selector*])
setter - *chainable*Sets or gets text of selected elements.
---
## Styling
### .hasClass([*className*], [*selector*])Returns new instance of Helm which elements have *className*
If *className* is omitted then returns new instance of Helm which elements have *at least one* class of any name.---
### .setClass(className, [*selector*])
*chainable*Sets *className* as the *only* class for the elements. All other classes are removed.
---
### .addClass(className, [*selector*])
*chainable*Adds *className* to the elements.
---
### .removeClass([*className*], [*selector*])
*chainable*Removes *className* from elements.
If *className* is not passed then all classes are removed form the selected elements.---
### .getClass([*selector*])Returns an array of classes that exist on selected elements.