d-textarea

0.1.2 • Public • Published

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' 

Readme

Keywords

Package Sidebar

Install

npm i d-textarea

Weekly Downloads

1

Version

0.1.2

License

The MIT License (MIT)

Last publish

Collaborators

  • ile