Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@meteora-digital/modal
Advanced tools
Readme
Modal is a dependancy free class which can be used to create some basic modals easily.
yarn add @meteora-digital/modal
import Modal from '@meteora-digital/modal';
const popup = new Modal;
const content = document.querySelector('.content');
Option | Type | Description |
---|---|---|
className | string (default: 'modal') | If you want more than one style of modal, you can change this class to suit your needs |
allowClose | boolean (default: true) | If you want to disable the close button, set this to false |
removeFromDOM | boolean (default: true) | If you want to keep the modal in the DOM, set this to false |
Fill your modal with something interesting!
The append method can take either a string, an html element, or an array of both!
popup.append(['<h1>Modal Heading</h1>', content]);
Dont like your modal's content? Delete it!
The empty method simply removes the content from the modal.
popup.empty();
It would help if we could see it right?
popup.open();
Get it out the way!
popup.close();
What if I need something to happen after it opens or closes?
popup.on('open', () => console.log('Your modal has been opened!'));
Events |
---|
open |
close |
append |
empty |
FAQs
An es6 class to create some basic modals.
The npm package @meteora-digital/modal receives a total of 1 weekly downloads. As such, @meteora-digital/modal popularity was classified as not popular.
We found that @meteora-digital/modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.