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