Skip to content

Commit

Permalink
Merge pull request vitalets#990 from Multithread/develop
Browse files Browse the repository at this point in the history
Added maxLength Attribute to options
  • Loading branch information
MarQuisKnox authored Apr 13, 2017
2 parents b1d79e8 + d66840a commit 3868975
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions dist/bootstrap-editable/js/bootstrap-editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -2925,6 +2925,7 @@ $(function(){
this.renderClear();
this.setClass();
this.setAttr('placeholder');
this.setAttr('maxlength');
},

activate: function() {
Expand Down Expand Up @@ -3016,7 +3017,16 @@ $(function(){
@default null
**/
placeholder: null,


/**
maxlength attribute of input.
@property placeholder
@type string
@default null
**/
maxlength: null,

/**
Whether to show `clear` button
Expand Down Expand Up @@ -3062,7 +3072,8 @@ $(function(){
render: function () {
this.setClass();
this.setAttr('placeholder');
this.setAttr('rows');
this.setAttr('rows');
this.setAttr('maxlength');

//ctrl + enter
this.$input.keydown(function (e) {
Expand Down Expand Up @@ -3129,6 +3140,16 @@ $(function(){
@default null
**/
placeholder: null,

/**
maxlength attribute of input.
@property placeholder
@type string
@default null
**/

maxlength: null,
/**
Number of rows in textarea
Expand Down

0 comments on commit 3868975

Please sign in to comment.