📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

beatle-dialog

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beatle-dialog

``` // define a dialog in demo_dialog.jsx import BeatleDialog from 'beatle-dialog'; import Modal from 'antd/lib/modal';

2.0.1
latest
npm
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

usage

// define a dialog in demo_dialog.jsx
import BeatleDialog from 'beatle-dialog';
import Modal from 'antd/lib/modal';

const DemoModal = React.createClass({
  render: function () {
    return <Modal {...this.props} >
      { this.props.$value.label }
      { this.props.user.name }
    </Modal>;
  }
});

export default BeatleDialog(['user', 'list'], DemoModal);

// use a dialog
import DemoDialog from './demo_dialog.jsx';

DemoDialog.createDialog({
  label: 'this is title'
});

FAQs

Package last updated on 03 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts