Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

ember-cli-focus-input

2.0.0 • Public • Published

Ember-cli-focus-input

Build Status NPM Downlaads

Description

Ember-cli-focus-input is a set of ember components that provide autofocus (the first input of your form/page).

Installation

# Install via npm
$ npm install ember-cli-focus-input --save-dev

Focus Input

{{focus-input value=model.field class="foo"}}

By default the input will be focused and have the content selected. If you prefer not to have the text selected/highlighted configure it like so.

{{focus-input value=model.field class="foo" select="false"}}

Focus Button

{{focus-button value=model.buttonField class="bar"}}

Running Tests

npm install
bower install
ember test
ember test --server

License

Copyright © 2016 Brandon Williams http://williamsbdev.com

Licensed under the MIT License

install

npm i ember-cli-focus-input

Downloadsweekly downloads

162

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability