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.
User Contributed Notes 2
Custommizing Element
How we can custommize this extension for adding some attribute
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>Leave a comment
If you have any questions, please ask in the forum instead.
Join the conversation to share a note.