Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reimax/dockModal

A vanilla JS customisable dialog plugin
https://github.com/reimax/dockModal

dialog javascipt javascript modal vanilla-javascript vanilla-js

Last synced: about 1 month ago
JSON representation

A vanilla JS customisable dialog plugin

Awesome Lists containing this project

README

        

DockModal.js
A vanilla, lightweight (~8kb gzipped), configurable. Fork jquery.dialog.js but without the jQuery dependency.

SETUP

js
```js
dockModal(document.querySelector(".dock_modal"), {
minimizedWidth: 240,
class: 'dockmodal_test',
height: 420,
title: function() {
return document.querySelector(".dock_modal").getAttribute("data-title");
},
initialState: "minimized"
});
```
html
```html


test content

```

callback function:
```php
beforeCreate: undefined,
create: undefined,
open: undefined,
beforeClose: undefined,
close: undefined,
beforeMinimize: undefined,
minimize: undefined,
beforeRestore: undefined,
restore: undefined,
beforePopout: undefined,
popout: undefined
```

demo:
https://reimax.github.io/dockModal/public/