rm3-react-controls
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -7,2 +7,7 @@ # Change Log | ||
## [0.0.13] - 2017-2-24 | ||
### Added | ||
- Adds functionality to hook into form validation. | ||
## [0.0.12] - 2017-2-16 | ||
@@ -9,0 +14,0 @@ |
@@ -47,3 +47,3 @@ var React = require('react'); | ||
'label', | ||
{ htmlFor: 'password', lassName: 'pure-input-1' }, | ||
{ htmlFor: 'password', className: 'pure-input-1' }, | ||
React.createElement(FormattedMessage, { id: 'PASSWORD_ENTER_TWICE' }), | ||
@@ -50,0 +50,0 @@ ':' |
@@ -52,3 +52,3 @@ var React = require('react'); | ||
{ className: 'pure-u-1-3' }, | ||
React.createElement('input', { className: 'pure-input-1', name: 'root', type: 'text', value: path, | ||
React.createElement('input', { className: 'pure-input-1', id: 'root', name: 'root', type: 'text', value: path, | ||
readOnly: true, disabled: true }) | ||
@@ -60,3 +60,3 @@ ), | ||
React.createElement('input', { className: 'pure-input-1', type: 'text', | ||
value: this.state.leaf, disabled: this.state.slug, | ||
value: this.state.leaf, id: 'leaf', disabled: this.state.slug, | ||
name: 'leaf', onChange: this.leafChange, | ||
@@ -71,3 +71,3 @@ placeholder: 'PATH' }) | ||
{ htmlFor: 'autogenSlug', className: 'pure-checkbox' }, | ||
React.createElement('input', { type: 'checkbox', onChange: this.slugSwitch, | ||
React.createElement('input', { type: 'checkbox', id: 'autogenSlug', onChange: this.slugSwitch, | ||
checked: this.state.slug, name: 'autogenSlug' }), | ||
@@ -74,0 +74,0 @@ React.createElement(FormattedMessage, { id: 'AUTO_GENERATE_SLUG' }) |
@@ -16,4 +16,14 @@ var React = require('react'); | ||
onClick: function (event) { | ||
console.log('12134563dv146'); | ||
var self = this; | ||
if (self.props.onClick) { | ||
console.log('1213456146'); | ||
return self.props.onClick(event); | ||
} | ||
}, | ||
render: function () { | ||
var buttonMessage = this.props.buttonMessage; | ||
var disabled = this.props.disabled; | ||
@@ -35,3 +45,3 @@ if (this.props.isDraft) { | ||
'button', | ||
{ type: 'submit', className: 'pure-button pure-button-primary' }, | ||
{ type: 'submit', onClick: this.onClick, disabled: disabled, className: 'pure-button pure-button-primary' }, | ||
buttonMessage | ||
@@ -78,3 +88,3 @@ ) | ||
'button', | ||
{ type: 'submit', className: 'pure-button pure-button-primary' }, | ||
{ type: 'submit', onClick: this.onClick, disabled: disabled, className: 'pure-button pure-button-primary' }, | ||
buttonMessage | ||
@@ -81,0 +91,0 @@ ) |
{ | ||
"name": "rm3-react-controls", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "React tools for rm3", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
27991
611