2.1.0 • Published 4 years ago

@deleteagency/modal v2.1.0

Weekly downloads
27
License
MIT
Repository
github
Last release
4 years ago

Modal

Live Demo

Motivation

TODO

Installation

Use the package manager npm for installation.

$ npm install @deleteagency/modal

Usage

you can import ready instance

import { modalService } from  '@deleteagency/modal';

const modal = modalService.create('<div>I am a modal!</div>');
modal.open();

or you can import class and modify it for your project, and then use

import { ModalService } from '@deleteagency/modal';

class CustomModalService extend ModalService {
	...
}

const myService = new customModalService();

Options

namespace

Type: String Default: data-modal

TODO

API

Modal.create(content, options)

Returns new Modal instance

content

Required Type: HTMLElement|String

options

Optional Type: Object

License

MIT

2.1.0

4 years ago

2.0.0

4 years ago

2.0.0-1

5 years ago

2.0.0-0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago