nadsonfernando / input-materialdesign-widget

Appcelerator Text Field concept Material Design
65 stars 10 forks source link

minLength not working. #10

Open adamkearsley opened 8 years ago

adamkearsley commented 8 years ago

maxLength works fine, but minLength doesn't appear to get initialised.

<Widget src="input-materialdesign" minLength="10" titleHint="Address3"/>
nadsonfernando commented 8 years ago

Hello friend, these two attributes only supports numeric type .

example:

adamkearsley commented 8 years ago
minLength="10"

this does not work?

maxLength="10"

this does work.

I looked at your code and it is an issue with the code only looking for the maxLength attribute and not minLength.

I have created a pull request to fix this and added new features.