flivni / ionic2-autosize Goto Github PK
View Code? Open in Web Editor NEWAngular 2 directive that automatically adjusts textarea height to fit content.
License: MIT License
Angular 2 directive that automatically adjusts textarea height to fit content.
License: MIT License
Hi there,
I cannot seem to get the directive to work with Ionic 3:
http://stackoverflow.com/questions/44018950/ionic-auto-size-text-area
I think there should be a little timeout before
textArea.style.height = textArea.scrollHeight + "px";
to give it a little time to recalculate the scrollHeight.
I did this:
setTimeout(() => {
textArea.style.height = textArea.scrollHeight + "px";
}, 100);
I am still getting familiar with ionic2 and Angular2. Does this seem like an issue with the package itself or can you please let me know if I am loading this improperly?
I have done the following
npm install ionic2-autosize --save
My declarations.d.ts
file has declare module '*';
In app.module.ts
, I have import { Autosize } from 'ionic2-autosize';
and
@NgModule({ declarations: [ Autosize ],
not working copy paste and move cursor in textarea.
i am trying to consume this in my project to autoresize my ion-buttons based on the text coming from service dynamically.
when i installed and imported it in my app.modules.ts, its returning me the below error.
Error Message: Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '/Users/e571224/Desktop/praveen/UnifiedEventApp/unified-event-app/node_modules/ionic2-autosize/index.js'
angular2-autosize is also giving the same issue. any idea on how to use it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.