ember-frost-fields

9.0.0 • Public • Published

ember-frost-fields

Dependencies

Ember NPM

Health

Travis Coveralls

Security

bitHound

Ember Observer score

EmberObserver

Overview

Ember-frost-fields provides different kinds of custom input fields and input areas.

frost-url-input

Based on the frost-text component from ember-frost-core, the URL input field consists of an input field and a button. The component is used to verify that the provided URL is both valid and accessible.

After clicking the 'Test' button,

  • the entered URL is loosely verified to be correctly formatted.
  • An AJAX GET request is then sent (with JSONP to overcome cross-domain problems) to the destination URL.
  • The response is checked with any status code between 100 and 500, except 404, deemed a success.

Should MIME Checking be enabled and the Type set to 'Text', an error will be thrown when using the Chrome browser

Testing with ember-hook

frost-url-input

The file picker component is accessible using ember-hook with the top level hook name or you can access the internal components as well -

  • Default top level hook - $hook('url-input')
  • Test button hook - $hook('<hook-name>-button')
  • Input field hook - $hook('<hook-name>-input')

Examples

API and example usage can be found in the sample application in tests/dummy, which is also running at http://ciena-frost.github.io/ember-frost-fields

frost-url-input

{{frost-url-input}}

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Readme

Keywords

Package Sidebar

Install

npm i ember-frost-fields

Weekly Downloads

3

Version

9.0.0

License

MIT

Unpacked Size

41.2 kB

Total Files

21

Last publish

Collaborators

  • ciena