Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textarea height depending on the message
Message
 
 
À
Tous
Information générale
Forum:
CSS
Catégorie:
Autre
Titre:
Textarea height depending on the message
Divers
Thread ID:
01612561
Message ID:
01612561
Vues:
33
Hi everybody,

I want to create a nice looking information only type of the modal form (preferably with ability to resize the window).

Here is my meager attempt:
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="$dismiss()" aria-hidden="true">×</button>
    <h2 class="modal-title">{{ title }}</h2>
</div>
<div class="modal-body">
   
    <textarea ng-model="message" readonly class="form-control col-lg-12"></textarea> 
   
</div>
<div class="modal-footer">
    <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true" ng-click="$dismiss()">{{ okLabel }}</button>   
</div>
My problem is the height of the text area - I want it to automatically resize to the full length of the message.

Also, if you already have nice looking bootstrap modal informational form (with angularJs or not) and can share, that will be awesome.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform