sc-textarea-with-search
v0.1.28
Published
Expanding textarea for KanteleJS
Downloads
7
Readme
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'