0.1.9 • Published 7 years ago

k-textarea v0.1.9

Weekly downloads
20
License
The MIT License (...
Repository
github
Last release
7 years ago

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'
0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago