1.1.0 • Published 8 years ago

ractive-select-on-focus v1.1.0

Weekly downloads
174
License
WTFPL
Repository
github
Last release
8 years ago

Decorate the elements in your Ractive template so that the text inside them gets selected when they gain focus.

Install

npm install ractive-select-on-focus

Usage

In your code:

Ractive.decorators.selectOnFocus = require('ractive-select-on-focus')

In your template:

<input type="text" decorator="selectOnFocus" value="{{shareUrl}}" readonly>

License

WTFPL

1.1.0

8 years ago

1.0.0

9 years ago