https://github.com/tabuna/domulus
Manipulation of DOM on stimulus js
https://github.com/tabuna/domulus
Last synced: about 1 year ago
JSON representation
Manipulation of DOM on stimulus js
- Host: GitHub
- URL: https://github.com/tabuna/domulus
- Owner: tabuna
- License: mit
- Created: 2018-05-31T16:06:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T20:57:46.000Z (about 8 years ago)
- Last Synced: 2025-01-22T21:30:45.370Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Domulus
Manipulation of DOM on stimulus js
## Installation
```
npm install -s ...
```
## Usage
##### controller
```javascript
import {Controller} from "stimulus"
import Domulus from 'dumulus'
export default class extends Controller {
static targets = ["source"];
connect() {
Domulus.connect(this);
}
disconnect() {
Domulus.disconnect(this);
}
```
##### html
```html
Show text only value 1 or true
```
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.