Just an autogrow textArea widget
http://www.yiiframew…togrowtextarea/
Please use thise thread to post your bug reports.
Just an autogrow textArea widget
http://www.yiiframew…togrowtextarea/
Please use thise thread to post your bug reports.
Thanks for the widget.
But I think there are some bug in this widget:
This works
<? $this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('value'=>"Content", 'name'=>"Name1", 'maxHeight'=>300, 'lineHeight'=>16) ); ?>
This not
<? $this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('model'=>$model, 'attribute'=>"email", 'maxHeight'=>300, 'lineHeight'=>16) ); ?>
The second one shows the default Textarea
<textarea name="User[email]" id="User_email">ckuetbach@gmail.com</textarea> <textarea name="Name1" id="Name1">Content</textarea>
This Script is generated:
<script type="text/javascript"> /*<![CDATA[*/ jQuery(document).ready(function() { $("#User_email").autogrow({ maxHeight: 300, minHeight: 50, lineHeight: 16 }); $("#Name1").autogrow({ maxHeight: 300, minHeight: 50, lineHeight: 16 }); }); /*]]>*/ </script>
Looks good, but don't work.
Where is the error?
Second problem:
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('name'=>"test", 'maxHeigh'=300, 'lineHeigh'=30));
will not work, should be:
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('name'=>"test", 'maxHeigh'=>300, 'lineHeigh'=>30));
Regards,
Christian
I’m not with my computer right now, I’ll test it later and fix the errors
Quote
But I think there are some bug in this widget:
This works
<? $this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('value'=>"Content", 'name'=>"Name1", 'maxHeight'=>300, 'lineHeight'=>16) ); ?>
This not
<? $this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('model'=>$model, 'attribute'=>"email", 'maxHeight'=>300, 'lineHeight'=>16) ); ?>
The second one shows the default Textarea
<textarea name="User[email]" id="User_email">ckuetbach@gmail.com</textarea> <textarea name="Name1" id="Name1">Content</textarea>
This Script is generated:
<script type="text/javascript"> /*<![CDATA[*/ jQuery(document).ready(function() { $("#User_email").autogrow({ maxHeight: 300, minHeight: 50, lineHeight: 16 }); $("#Name1").autogrow({ maxHeight: 300, minHeight: 50, lineHeight: 16 }); }); /*]]>*/ </script>
Looks good, but don't work.
Where is the error?
Second problem:
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('name'=>"test", 'maxHeigh'=300, 'lineHeigh'=30));
will not work, should be:
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", array('name'=>"test", 'maxHeigh'=>300, 'lineHeigh'=>30));
Regards,
Christian
I test both and can't reproduce the error. Could you send me your files to see it.
The second, yes, fast typing error, i've updated here and at the extensions directory.
Thanks!
Updated version 1.0.1
With phpdoc comentaries.