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

ember-select-spark

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

ember-select-spark

A simple way to use and style <select> with Ember Sparks.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

{{select-spark}}

A simple way to use <select>

http://ember-sparks.com/


Installation and usage

Install the Ember Sparks addon (this component is part of the standard library):

ember install ember-sparks

Now restart your Ember app and drop the component in there!

{{select-spark}}

Properties

NameTypeDefaultDescription
optionsarraynullA list of options that the user can select. The array can either contain just strings, or objects with the keys value and label (recommended).
selectedstringnullThe default selected option. Must match one of your options' value.
disabledbooleanfalseDetermine whether the user can interact with the select box or not.

Actions

NameDescription
onChangeTriggers when the user selects a new value.

Block version

If you use the component as a block, you can set an icon for it (this icon could also change depending on what the user selects)

{{#select-spark}}
  <svg></svg>
{{/select-spark}}

Theming

To see these examples in action, check out the interactive documentation.

Important! All classes are local in order to avoid naming collisions and unintended CSS side effects. To understand how to style them, check out the Ember Sparks documentation.

  • .select

    Style the select box. When using the block version of the components, the class .has-icon will be appended to it.

    Example:

    .select {
      background: linear-gradient(to bottom, white, #F1F5F9);
      border: 1px solid #AEBEC8;
      border-radius: 6px;
      box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
      color: #586576;
    }
    
  • .arrow

    Style the arrow on the right side of the select box.

    Example:

    .select {
      border-width: 9px;
      border-top-color: red;
    }
    

Contributing

Check out the guidelines at http://ember-sparks.com/docs#contribute

Keywords

FAQs

Package last updated on 26 Jan 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

  • 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