Skip to content

jnotnull/react-simple-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Light-weight and simple dialog component

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published