Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/xerdi/material-design-modal-dialog-builder

Create dialogs in a nutshell
https://github.com/xerdi/material-design-modal-dialog-builder

Last synced: about 2 months ago
JSON representation

Create dialogs in a nutshell

Awesome Lists containing this project

README

        

# Material-Design-Modal-Dialog-Builder
Create dialogs in a nutshell

## Dependencies
[Bootstrap material design](http://fezvrasta.github.io/bootstrap-material-design/)

## Put this in your ``````
```html

```
## Put this at the bottom of your ``````
```html

```
# Usage
## How to hook a dialog

```javascript
var modal = new Modal({
title: "A modal example!",
body: document.createTextNode("This is an example of an HTML DOM element added to the body of the modal."),
success: "success button text",
process: function () {
//some ajax functions
modal.close();
}
});

$('#my-button').click(function() {
modal.show();
});
```