bgrins / ExpandingTextareas

jQuery plugin for elegant expanding textareas
http://bgrins.github.com/ExpandingTextareas/
MIT License
261 stars 73 forks source link

Add class to wrapper #62

Closed jvlobo closed 8 years ago

jvlobo commented 8 years ago

Hi there.

I need to add a custom class to the wrapper which is created by the expanding plugin, but I don't know if it is possible to do it and how.

Thanks.

domchristie commented 8 years ago

It’s not currently possible to customise the class name. Would you be able to provide a bit more information about your use case?

jvlobo commented 8 years ago

I'm using Bootstrap and I'd like to use the grid system, so I have to define a "col-md-x" on the wrapper element because if I do it in the textarea itself it doesn't work well.

domchristie commented 8 years ago

Could you wrap the textarea in a <div class="col-md-x">?

jvlobo commented 8 years ago

Yeah, that worked, because the wrapper is created inside that div. Perfect!

Thank you :)