Yii 1.1: eautogrowtextarea

An autogrow height TextArea
5 followers

An autogrow height TextArea.

Resources

Documentation

Requirements

  • Yii 1.0 or above
  • Jquery 1.2.2 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", 
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'); ?>
  </div>
#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