k-textarea

0.1.9 • Public • Published

k-textarea

Expanding textarea for KanteleJS

http://alistapart.com/article/expanding-text-areas-made-elegant/

##Demo

https://derby-demos.herokuapp.com/d-textarea

How to use

app.component(require('k-textarea'));
<view name="k-textarea" text="{{#root._page.text}}"></view>

Or

app.component(require('k-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 k-textarea

Weekly Downloads

1

Version

0.1.9

License

The MIT License (MIT)

Unpacked Size

4.41 kB

Total Files

6

Last publish

Collaborators

  • ile