0.0.3 • Published 8 years ago

react-simple-dialog v0.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

react-simple-dialog

Very simple react dialog

Install

npm install react-simple-dialog

Usage

import:

import Dialog from 'react-simple-dialog';
import 'react-simple-dialog/dist/dialog.css';

in JSX:

<Dialog ref='dialog'/>

in click:

this.refs.dialog.show({
  config: {
    title: 'info',
    tip: 'confirm?'
  },
  okfunc: function(){
      location.href = "#/ctrldesk"
    }.bind(this)
});

Compile

babel ./src/dialog.js --out-file ./dist/dialog.js
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago