ractive-select-on-focus

1.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    182
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    182
  • 1.0.0
    1

Package Sidebar

Install

npm i ractive-select-on-focus

Weekly Downloads

183

Version

1.1.0

License

WTFPL

Last publish

Collaborators

  • tehshrike