From 02a961ed856edf993c82898cb1f16b3b30d40172 Mon Sep 17 00:00:00 2001 From: vitalets <noginsk@rambler.ru> Date: Mon, 7 Jan 2013 14:29:31 +0400 Subject: [PATCH] rows attribute for textarea --- src/inputs/textarea.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/inputs/textarea.js b/src/inputs/textarea.js index 7774c0e..b7b1809 100644 --- a/src/inputs/textarea.js +++ b/src/inputs/textarea.js @@ -26,7 +26,8 @@ $(function(){ $.extend(Textarea.prototype, { render: function () { this.setClass(); - this.setAttr('placeholder'); + this.setAttr('placeholder'); + this.setAttr('rows'); //ctrl + enter this.$input.keydown(function (e) { @@ -90,7 +91,15 @@ $(function(){ @type string @default null **/ - placeholder: null + placeholder: null, + /** + Number of rows in textarea + + @property rows + @type integer + @default 7 + **/ + rows: 7 }); $.fn.editabletypes.textarea = Textarea;