orcaslicer/resources/web/include/swiper/node_modules/dom7
zorro.zhang b4ffa91cb4 ENH: model info display UI
Change-Id: I066c0e7f8ce87ec00b1141a1b44430444a819b42
(cherry picked from commit 05907a1a42da82737090d55046974d401f8af057)
2023-04-17 15:39:02 +08:00
..
dom7.d.ts ENH: model info display UI 2023-04-17 15:39:02 +08:00
dom7.esm.js ENH: model info display UI 2023-04-17 15:39:02 +08:00
dom7.js ENH: model info display UI 2023-04-17 15:39:02 +08:00
dom7.js.map ENH: model info display UI 2023-04-17 15:39:02 +08:00
dom7.min.js ENH: model info display UI 2023-04-17 15:39:02 +08:00
dom7.min.js.map ENH: model info display UI 2023-04-17 15:39:02 +08:00
LICENSE ENH: model info display UI 2023-04-17 15:39:02 +08:00
package.json ENH: model info display UI 2023-04-17 15:39:02 +08:00
README.md ENH: model info display UI 2023-04-17 15:39:02 +08:00

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 dont 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.