🚨 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.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

ember-button-select

A button select component for your ember app.

Installation

# From within your ember-cli project
ember install:addon 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 25 Sep 2015

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