🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

ember-button-select

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-button-select

A button select component for your ember app.

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ember-button-select

A button select component for your ember app.

Installation

  • npm install --save ember-button-select

Usage

In your template:

{{#button-select selected=period}}
  {{#button-option value='week'}}Week{{/button-option}}
  {{#button-option value='month'}}Month{{/button-option}}
  {{#button-option value='year'}}Year{{/button-option}}
{{/button-select}}

{{!-- OR --}}
{{#button-select selected=period}}
  {{button-option label='Week' value='week'}}
  {{button-option label='Month' value='month'}}
  {{button-option label='Year' value='year'}}
{{/button-select}}

When one of the button options is selected, it will have the 'selected' class set on it. In addition, the selected binding that gets passed into the button-select component will be updated to the selected buttons value.

Styling is left completely to you.

Keywords

ember-addon

FAQs

Package last updated on 20 Dec 2014

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