Socket
Socket
Sign inDemoInstall

dom7

Package Overview
Dependencies
1
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dom7

Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API


Version published
Weekly downloads
714K
decreased by-16.05%
Maintainers
1
Install size
305 kB
Created
Weekly downloads
 

Changelog

Source

4.0.6 (2023-02-02)

Bug Fixes

  • types: fix multiple class definitions on class manipulation methods (#66) (47ee3c3), closes #67

Readme

Source

Dom7

Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API

Dom7 - is the default DOM manipulation library built-in Framework7. It utilizes most edge and high-performance methods for DOM manipulation. You don’t need to learn something new, its usage is very simple because it has the same syntax as well known jQuery library with support of the most popular and widely used methods and jQuery-like chaining.

See Framework7 Dom7 documentation for usage examples and available methods.

Installation

Dom7 can be installed with NPM:

npm install dom7 --save

Usage

// import Dom7 and methods you need
import { $, addClass, removeClass, toggleClass, on } from 'dom7';

// install methods
$.fn.addClass = addClass;
$.fn.removeClass = removeClass;
$.fn.toggleClass = toggleClass;
$.fn.on = on;

// use
$('p').addClass('custom-paragraph');

$('p').on('click', function() {
  $(this).toggleClass('custom-paragraph');
});

Documentation

See full documenation here

Contribution

Yes please! See the contributing guidelines for details.

Licence

This project is licensed under the terms of the MIT license.

Keywords

FAQs

Last updated on 02 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc