Socket
Socket
Sign inDemoInstall

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.


Version published
Maintainers
1
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 18 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