API Docs for: 0.0.1
Show:

MaskedInput Class

Description here

Copyright (c) 2016 ItsAsbreuk - http://itsasbreuk.nl
New BSD License - http://choosealicense.com/licenses/bsd-3-clause/

Methods

element

(
  • props
)

Defined in lib/component.jsx:38

Available since 0.0.4

Returns the rendered React-Element that serves as the source dom-element

Parameters:

  • props Object

    props to be passed through to the Component

Returns:

ReactComponent

element

(
  • props
)

Defined in lib/v.16.0.4.js:30

Available since 0.0.4

Returns the rendered React-Element that serves as the source dom-element

Parameters:

  • props Object

    props to be passed through to the Component

Returns:

ReactComponent

focus

(
  • [transitionTime]
)
chainable

Defined in lib/component.jsx:66

Available since 0.0.1

Sets the focus on the Component.

Parameters:

  • [transitionTime] Number optional

    transition-time to focus the element into the view

focus

() chainable

Defined in lib/component.jsx:86

Available since 0.0.1

Sets the focus on the Component.

getInitialState

()

Defined in lib/component.jsx:78

Available since 0.0.1

Gets the Component"s internal state. Note, that the this is NOT Redux"s state.

Returns:

Object the Component internal initial state

handleBlur

(
  • e
)

Defined in lib/component.jsx:113

Available since 0.0.1

The method that is called whenever the input-Element gets blurred. It will change its internal state, so that the css looks right and also any validation-messages appear.

Parameters:

handleChange

(
  • e
)

Defined in lib/component.jsx:94

Available since 0.0.1

The method that is called whenever the input-Element changes its value. Will update the Redux-store (signupuser.homeaddress);

Parameters:

handleFocus

(
  • e
)

Defined in lib/component.jsx:103

Available since 0.0.1

The method that is called whenever the input-Element gets the focus. It will change its internal state, so that the css looks right and also any validation-messages disappear.

Parameters:

render

()

Defined in lib/component.jsx:123

Available since 0.0.1

React render-method --> renderes the Component.

Returns:

ReactComponent

Properties

autoFocus

Boolean

Defined in lib/v.16.0.4.js:48

Available since 0.0.1

Whether to autofocus the Component.

autoFocus

Boolean

Defined in lib/component.jsx:141

Available since 0.0.1

Whether to autofocus the Component.

className

String

Defined in lib/v.16.0.4.js:57

Available since 0.0.1

The class that should be set on the element

className

String

Defined in lib/component.jsx:150

Available since 0.0.1

The class that should be set on the element

errorMsg

String

Defined in lib/v.16.0.4.js:66

Available since 0.0.1

The error-message that appears when the element is wrong validated.

errorMsg

String

Defined in lib/component.jsx:159

Available since 0.0.1

The error-message that appears when the element is wrong validated.

formValidated

Boolean

Defined in lib/v.16.0.4.js:75

Available since 0.0.1

Whether the parent-form has been validated. This value is needed to determine if the validate-status should be set.

formValidated

Boolean

Defined in lib/component.jsx:168

Available since 0.0.1

Whether the parent-form has been validated. This value is needed to determine if the validate-status should be set.

helpText

String

Defined in lib/v.16.0.4.js:85

Available since 0.0.1

The text that should appear when the element is wrong validated.

helpText

String

Defined in lib/component.jsx:178

Available since 0.0.1

The text that should appear when the element is wrong validated.

id

String

Defined in lib/v.16.0.4.js:94

Available since 0.0.1

The id of the element.

id

String

Defined in lib/component.jsx:187

Available since 0.0.1

The id of the element.

markValidated

Boolean

Defined in lib/component.jsx:205

Available since 0.0.1

Whether the Component should show an validate-reclamation (star)

markValidated

Boolean

Defined in lib/v.16.0.4.js:103

Available since 0.0.1

Whether to mark the Component when successfully validated.

markValidated

Boolean

Defined in lib/component.jsx:196

Available since 0.0.1

Whether to mark the Component when successfully validated.

markValidated

Boolean

Defined in lib/v.16.0.4.js:112

Available since 0.0.1

Whether the Component should show an validate-reclamation (star)

mask

String

Defined in lib/v.16.0.4.js:121

Available since 0.0.1

The mask that determines the pattern. See https://github.com/insin/inputmask-core#pattern

mask

String

Defined in lib/component.jsx:214

Available since 0.0.1

The mask that determines the pattern. See https://github.com/insin/inputmask-core#pattern

name

String

Defined in lib/v.16.0.4.js:131

Available since 0.0.1

The name for the element.

name

String

Defined in lib/component.jsx:224

Available since 0.0.1

The name for the element.

onBlur

Function

Defined in lib/v.16.0.4.js:140

Available since 0.1.0

The onBlur function, when happening on the DOM-Element.

onBlur

Function

Defined in lib/component.jsx:233

Available since 0.1.0

The onBlur function, when happening on the DOM-Element.

onChange

Function

Defined in lib/component.jsx:242

Available since 0.0.1

The onChange function, which should update the state.

onChange

Function

Defined in lib/v.16.0.4.js:149

Available since 0.0.1

The onChange function, which should update the state.

onClick

Function

Defined in lib/v.16.0.4.js:158

Available since 0.0.1

The onClick function, when happening on the DOM-Element.

onClick

Function

Defined in lib/component.jsx:251

Available since 0.0.1

The onClick function, when happening on the DOM-Element.

onFocus

Function

Defined in lib/v.16.0.4.js:167

Available since 0.1.0

The onFocus function, when happening on the DOM-Element.

onFocus

Function

Defined in lib/component.jsx:260

Available since 0.1.0

The onFocus function, when happening on the DOM-Element.

onKeyDown

Function

Defined in lib/component.jsx:269

Available since 0.1.0

The onKeyDown function, when happening on the DOM-Element.

onKeyDown

Function

Defined in lib/v.16.0.4.js:176

Available since 0.1.0

The onKeyDown function, when happening on the DOM-Element.

onKeyEnter

Function

Defined in lib/v.16.0.4.js:185

Available since 0.1.0

The onKeyEnter function, when the enter-key is pressed.

onKeyEnter

Function

Defined in lib/component.jsx:278

Available since 0.1.0

The onKeyEnter function, when the enter-key is pressed.

onKeyPress

Function

Defined in lib/v.16.0.4.js:194

Available since 0.1.0

The onKeyPress function, when happening on the DOM-Element.

onKeyPress

Function

Defined in lib/component.jsx:287

Available since 0.1.0

The onKeyPress function, when happening on the DOM-Element.

onKeyUp

Function

Defined in lib/v.16.0.4.js:203

Available since 0.1.0

The onKeyUp function, when happening on the DOM-Element.

onKeyUp

Function

Defined in lib/component.jsx:296

Available since 0.1.0

The onKeyUp function, when happening on the DOM-Element.

placeholder

String

Defined in lib/v.16.0.4.js:212

Available since 0.0.1

The placeholder for the element.

placeholder

String

Defined in lib/component.jsx:305

Available since 0.0.1

The placeholder for the element.

style

Object

Defined in lib/component.jsx:314

Available since 0.0.1

Inline style

style

Object

Defined in lib/v.16.0.4.js:221

Available since 0.0.1

Inline style

type

String

Defined in lib/component.jsx:323

Available since 0.0.1

The type of the input-element: either text or password

type

Number

Defined in lib/component.jsx:332

Available since 0.0.1

The tabindex of the Component.

type

String

Defined in lib/v.16.0.4.js:230

Available since 0.0.1

The type of the input-element: either text or password

type

Number

Defined in lib/v.16.0.4.js:239

Available since 0.0.1

The tabindex of the Component.

validated

Boolean

Defined in lib/component.jsx:341

Available since 0.0.1

Whether the property is validated right.

validated

Boolean

Defined in lib/v.16.0.4.js:248

Available since 0.0.1

Whether the property is validated right.

value

String

Defined in lib/component.jsx:350

Available since 0.0.1

The value of the input-element.

value

String

Defined in lib/v.16.0.4.js:257

Available since 0.0.1

The value of the input-element.