rows attribute for textarea
This commit is contained in:
@ -26,7 +26,8 @@ $(function(){
|
|||||||
$.extend(Textarea.prototype, {
|
$.extend(Textarea.prototype, {
|
||||||
render: function () {
|
render: function () {
|
||||||
this.setClass();
|
this.setClass();
|
||||||
this.setAttr('placeholder');
|
this.setAttr('placeholder');
|
||||||
|
this.setAttr('rows');
|
||||||
|
|
||||||
//ctrl + enter
|
//ctrl + enter
|
||||||
this.$input.keydown(function (e) {
|
this.$input.keydown(function (e) {
|
||||||
@ -90,7 +91,15 @@ $(function(){
|
|||||||
@type string
|
@type string
|
||||||
@default null
|
@default null
|
||||||
**/
|
**/
|
||||||
placeholder: null
|
placeholder: null,
|
||||||
|
/**
|
||||||
|
Number of rows in textarea
|
||||||
|
|
||||||
|
@property rows
|
||||||
|
@type integer
|
||||||
|
@default 7
|
||||||
|
**/
|
||||||
|
rows: 7
|
||||||
});
|
});
|
||||||
|
|
||||||
$.fn.editabletypes.textarea = Textarea;
|
$.fn.editabletypes.textarea = Textarea;
|
||||||
|
Reference in New Issue
Block a user