d-textarea
v0.1.2
Published
Expanding textarea for Derby.js
Downloads
14
Readme
d-textarea
Expanding textarea for Derby.js
http://alistapart.com/article/expanding-text-areas-made-elegant/
How to use
app.component(require('d-textarea'));
<view name="d-textarea" text="{{#root._page.text}}"></view>
Or
app.component(require('d-textarea'));
<view name="d-textarea" id="my-textarea" name_="myform[text]" placeholder="Enter text..." class="my-class" on-keydown="textareaKeyhandler()" text="{{#root._page.text}}"></view>
app.proto.textareaKeyhandler = function(event, element) { /* do something */}
style.css
Needs to be imported from the main app now. In styles/app/index.styl:
@import '../../node_modules/d-textarea/style.css'