Yii 1.1: eautogrowtextarea

An autogrow height TextArea

An autogrow height TextArea.




  • Yii 1.0 or above
  • Jquery 1.2.2 or above


  • Extract the release file under protected/extensions


See the following code example:

array('name'=>"test", 'maxHeight'=>300, 'lineHeight'=>30));

Change Log

January 7, 2009

  • Typo error at documentation
  • Comments added to attributes

December 25, 2008

  • Initial release.

Total 2 comments

#16805 report it
Scotter at 2014/03/30 08:51am
Using eautogrowtextarea with a model.

Although its not explained on the extensions page looking at the source code it became apparent that you can just set model and attribute properties in the array and it'll behave like a CActiveForm::textArea(). Heres an example of code working on a site I'm currently developing.

Yii v1.1.14 and eautogrowtextarea v1.0.1

<div class="row">
    <?php echo $form->labelEx($model,'description'); ?>
    <?php $this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('model'=>$model, 'attribute'=>'description', 'maxHeight'=>300, 'lineHeight'=>20)); ?>
    <?php //echo $form->textArea($model,'description'); ?>
    <?php echo $form->error($model,'description'); ?>
#10434 report it
Sani Iman Pribadi at 2012/10/27 02:30pm
Custommizing Element

How we can custommize this extension for adding some attribute

Leave a comment

Please to leave your comment.

Create extension