| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
MatthewIcz
9年前发布

angular2-autosize is an Angular2 directive that automatically adjusts textarea height to fi...

来自: https://github.com/stevepapa/angular2-autosize

angular2-autosize

angular2-autosize is an Angular2 directive that automatically adjusts textarea height to fit content.

It adjusts the textarea height automatically to any text input, or changes to the model bound to the textarea.

Demo

http://stevepapa.com/angular2-autosize

Installation:

npm install angular2-autosize

Use Example:

import {Component} from 'angular2/core';  import {Autosize} from 'angular2-autosize';    @Component({    template: `      <textarea autosize class="my-textarea">Hello, this is an example of Autosize in Angular2.</textarea>    `,    directives: [Autosize]  })    class App {    }

Author

Steve Papa

Licence

This project is licensed under the MIT license. See theLICENSE file for more info.

 本文由用户 MatthewIcz 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1455198669386.html
Web框架 angularjs