Sha256: 373024d307a63b2c7bf94f5181ba49deef2f21f0543717701515b98ccbe77ace

Contents?: true

Size: 1.54 KB

Versions: 44

Compression:

Stored size: 1.54 KB

Contents

var React = require('react');
var Classable = require('../../../../node_modules/material-ui/src/js/mixins/classable');
var DialogWindow = require('../../../../node_modules/material-ui/src/js/dialog-window.jsx');

/**
 * Version extracted from website.
 * @type {*|Function}
 * @private
 */
var Dialog_ = React.createClass({

  displayName: "Dialog",

  mixins: [Classable],

  propTypes: {
    title: React.PropTypes.string
  },

  render: function() {

    var $__0 = this.props,
      className = $__0.className,
      title = $__0.title,
      other = (function(source, exclusion) {
        var rest = {};
        var hasOwn = Object.prototype.hasOwnProperty;
        if (source == null) {
          throw new TypeError();
        }
        for (var key in source) {
          if (hasOwn.call(source, key) && !hasOwn.call(exclusion, key)) {
            rest[key] = source[key];
          }
        }
        return rest;
      }) ($__0, {className:1, title:1});

    var classes = this.getClasses('mui-dialog');

    return (
      React.createElement(DialogWindow, React.__spread({},
          other,
          {ref: "dialogWindow",
            className: classes}),

        //React.createElement("h3", {className: "mui-dialog-title"}, this.props.title),
        React.createElement("div", {ref: "dialogContent", className: "mui-dialog-content"},
          this.props.children
        )

      )
    );
  },

  dismiss: function() {
    this.refs.dialogWindow.dismiss();
  },

  show: function() {
    this.refs.dialogWindow.show();
  }

});

module.exports = Dialog_;

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
nutella_framework-0.6.4 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.3 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.2 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.1 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.0 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.5.1 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.5.0 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.32 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.31 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.30 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.29 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.28 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.27 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.26 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.25 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.24 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.23 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.22 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.21 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.4.20 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx