tinacious / ng-autogrow

An AngularJS directive for autogrowing textareas

Home Page:https://tinacious.github.io/ng-autogrow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng-autogrow

An AngularJS directive for autogrowing textareas.

It automagically adjusts the height of textareas so you don't have to vertically scroll.

👯 View the demo here

Usage

npm install ng-autogrow

Add it as a dependency to your module.

angular.module('myApp', ['ng-autogrow'])

Use the directive and any configuration as so:

<textarea 
  autogrow 
  autogrow-min-height="100">
</textarea>

Options

  • autogrow-min-height: A minimum height for the textarea. Default: 0

About

An AngularJS directive for autogrowing textareas

https://tinacious.github.io/ng-autogrow


Languages

Language:HTML 66.8%Language:JavaScript 33.2%