- Notifications
You must be signed in to change notification settings - Fork0
A simple library that autosizes your textareas.
License
NotificationsYou must be signed in to change notification settings
bravobit/ngx-autosize
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Autosize your textareas with ease.
- Use⌘ Command +F orctrl +F to search for a keyword.
- Contributions welcome, please seecontribution guide.
- Easy implementation
- Library can be consumed by Angular CLI, Webpack, or SystemJS
- Compatibility
- Angular Universal
- Ahead-Of-Time compilation (AOT)
- Lazy loading
Click here to play with the example
To use ngx-autosize in your project install it vianpm
oryarn
:
$ npm install @bravobit/ngx-autosize --save# or$ yarn add @bravobit/ngx-autosize
Add theNgxAutosizeModule
to your imports array in yourAppModule
.
import{BrowserModule}from'@angular/platform-browser';import{NgModule}from'@angular/core';import{NgxAutosizeModule}from'@bravobit/ngx-autosize';import{AppComponent}from'./app.component';@NgModule({imports:[BrowserModule,NgxAutosizeModule],declarations:[AppComponent],bootstrap:[AppComponent]})exportclassAppModule{}
import{ChangeDetectionStrategy,Component}from'@angular/core';@Component({selector:'app-root',template:` <textarea ngxAutosize minHeight="100px" maxHeight="500px">Woop die floop</textarea> `,styles:['textarea { resize: none; }'],changeDetection:ChangeDetectionStrategy.OnPush})exportclassAppComponent{}
About
A simple library that autosizes your textareas.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.