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.7.3 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.7.2 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.7.1 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.7.0 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.21 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.20 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.19 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.18 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.17 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.16 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.15 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.13 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.12 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.11 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.10 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.9 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.8 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.7 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.6 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx
nutella_framework-0.6.5 framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx