Skip to content

The Veams DOM Plugin is simple plugin for which you need to pass a DOM handler like jQuery.

License

Notifications You must be signed in to change notification settings

Veams/plugin-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Veams DOM Plugin (`@veams/plugin-dom')

The Veams DOM Plugin is simple plugin for which you need to pass a DOM handler like jQuery.

TypeScript is supported.

Installation

NPM

npm install @veams/plugin-dom --save

Yarn

yarn add @veams/plugin-dom

Usage

import $ from 'jquery';
import Veams from '@veams/core';
import VeamsDOM from '@veams/plugin-dom';

// Intialize core of Veams
Veams.onInitialize(() => {
   	// Add plugins to the Veams system
	Veams.use(VeamsDOM, {
        DOM: $
    });
});

Options

DOM {Function} [() => {}] (required) - Add a DOM handler by using this option. It should have the same api like jQuery.

Api

After that your DOM instance is available in the Veams object:

Veams.$('.page-wrapper').addClass('is-working');

About

The Veams DOM Plugin is simple plugin for which you need to pass a DOM handler like jQuery.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published