Name | Type | Default |
disabled
|
Boolean
|
false
|
Sets or gets the disabled property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} disabled={true} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
height
|
Number
|
"auto"
|
Sets or gets the height property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
localization
|
Object
|
{ passwordStrengthString: 'Password strength', tooShort: 'Too short', weak: 'Weak', fair: 'Fair', good: 'Good', strong: 'Strong' }
|
Sets or gets the localization property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} localization={localization} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
maxLength
|
Number
|
null
|
Sets or gets the maxLength property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} maxLength={7} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
placeHolder
|
String
|
null
|
Sets or gets the placeHolder property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} placeHolder={ 'Enter a Password'} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
passwordStrength
|
Function
|
null
|
Sets or gets the passwordStrength property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} passwordStrength={passwordStrength} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
rtl
|
Boolean
|
false
|
Sets or gets the rtl property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} rtl={true} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
strengthColors
|
Object
|
{ tooShort: 'rgb(170, 0, 51)', weak: 'rgb(170, 0, 51)', fair: 'rgb(255, 204, 51)', good: 'rgb(45, 152, 243)', strong: 'rgb(118, 194, 97)' }
|
Sets or gets the strengthColors property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} showStrength={true} strengthColors={{ tooShort: "Red", weak: "Red", fair: "Yellow", good: "Blue", strong: "Green" }} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
showStrength
|
Boolean
|
true
|
Sets or gets the showStrength property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} showStrength={true} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
showStrengthPosition
|
String
|
"right"
|
Sets or gets the showStrengthPosition property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} showStrength={true} showStrengthPosition={ 'left'} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
strengthTypeRenderer
|
Function
|
null
|
Sets or gets the strengthTypeRenderer property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} strengthTypeRenderer={strengthTypeRenderer} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
showPasswordIcon
|
Boolean
|
true
|
Sets or gets the showPasswordIcon property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} showPasswordIcon={false} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
theme
|
String
|
''
|
Sets or gets the theme property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} theme={ 'energyblue'} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
width
|
Number
|
"auto"
|
Sets or gets the width property.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { return ( <JqxPasswordInput ref='myPasswordInput' width={300} height={21} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
|
change
|
Event
|
|
This event is triggered when the value in the input is changed.
Code examples
Bind to the change event of jqxPasswordInput.
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { componentDidMount() { this.refs.myPasswordInput.on('change', (event) => { // Do Something... }); } render() { return ( <JqxPasswordInput ref= 'myPasswordInput' width={300} height={21} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
|
Name | Return Type |
render
|
None
|
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { componentDidMount() { this.refs.myPasswordInput.render(); } render() { return ( <JqxPasswordInput ref= 'myPasswordInput' width={300} height={21} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
refresh
|
None
|
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { componentDidMount() { this.refs.myPasswordInput.refresh(); } render() { return ( <JqxPasswordInput ref= 'myPasswordInput' width={300} height={21} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|
val
|
String
|
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from 'jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { componentDidMount() { let value = this.refs.myPasswordInput.val(); } render() { return ( <JqxPasswordInput ref= 'myPasswordInput' width={300} height={21} /> ) } } ReactDOM.render( <App />, document.getElementById( 'app'));
|