Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-model-select

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-model-select

An ember-cli addon to provide a searchable model select box with infinite scroll support.

  • 0.1.0-beta.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
decreased by-42.06%
Maintainers
1
Weekly downloads
 
Created
Source

ember-model-select

Build Status Ember Observer Score npm version

An ember-cli addon to provide a searchable model select box with infinite scroll support.

The addon composes ember-power-select, ember-infinity and ember-concurrency to provide an easy to use generic model select box based on ember-data models. It can be used in any place where one might want to search for models without the need for extra JavaScript code.

Installation

ember install ember-model-select

Usage

An example page can be found here.

{{model-select
  modelName='user'
  labelProperty='name'
  selectedModel=selectedModel
  onchange=(action (mut selectedModel))
}}

There is also a withCreate option which can be enabled by passing withCreate=true. The onCreate hook is called with the search term. An optional buildSuggestion function can be passed to construct the text shown in the create option. This defaults to Add "<term>"....

{{model-select
  modelName='user'
  labelProperty='name'
  selectedModel=selectedModel
  onChange=(action (mut selectedModel))
  
  withCreate=true
  oncreate(action 'createModel')
}}

NOTE: Extensive documentation is TBD. For now usage is documented in the main component file.

Code and documentation copyright 2018 Wedding Shoppe Inc. and contributors. Code released under the MIT license.

Keywords

FAQs

Package last updated on 20 Dec 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc