Socket
Book a DemoInstallSign in
Socket

@uncharted.software/ember-tokenfield

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uncharted.software/ember-tokenfield

The default blueprint for ember-cli addons.

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ember-tokenfield

This ember-cli addon provides a UI component called {{tokenfield-input}} that manages a list of user-entered keywords (a.k.a. 'tokens'.)

tokenfield-input example

Features

  • Easily delete a term by clicking the 'x' beside it.
  • Terms are selectable by clicking them.
  • Edit an existing term by double-clicking it.
  • (Optional) Shows an error if there is an attempt to enter a duplicate token.
  • (Optional) Specify placeholder text.

Installation

To add this addon to your ember project, just:

  • ember install @uncharted.software/ember-tokenfield

Or for more manual addon development and testing scenarios:

  • Add to the devDependencies in package.json:
  • "@uncharted.software/ember-tokenfield": "git+ssh://git@github.com/unchartedsoftware/ember-tokenfield.git#0.0.X"
  • yarn install
  • ember generate ember-tokenfield

Know Issue: The add-on does not install font-awesome for you. To see icons, you'll have to include it in your project manually.

Usage

In your templates, refer to the component as {{tokenfield-input}}.

Parameters

{{tokenfield-input 
    tokens=myTokens  // Array of strings to modify
    allowDuplicates=<true|false>
    placeholder="Enter search terms..."
}}

See see a working example, run the app under ./tests/dummy, which renders the token-test component.

Development Installation

  • git clone <repository-url> this repository
  • cd ember-tokenfield
  • npm install

Running Tests

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

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Keywords

ember-addon

FAQs

Package last updated on 20 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.