New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eqwad-combo-box

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eqwad-combo-box

Eqwad ComboBox is a customizable select box for Angular2.

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

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

Eqwad ComboBox

NPM Version NPM Downloads

Overview

Eqwad ComboBox is a customizable select box for Angular2.

Table of contents

Examples

Examples are here.

Dependencies

Download

Download it using npm:

npm install eqwad-combo-box

Getting started

Follow the steps below to add Eqwad ComboBox to your app. Also check out Eqwad ComboBox Demo for an example of installation.

Include Eqwad ComboBox CSS file in your main app HTML file and configure SystemJS.

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css">
        <link rel="stylesheet" href="node_modules/eqwad-combo-box/eqwad-combo-box.css">
        <script src="node_modules/systemjs/dist/system.src.js"></script>
        <script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
        <script src="node_modules/angular2/bundles/angular2.js"></script>
        <script>
            System.config({
                packages: {
                    app: {
                        format: 'register'
                    },
                    '../node_modules/eqwad-combo-box/': {
                        defaultExtension: 'js'
                    }
                },
                map: {
                    'eqwad-combo-box': '../node_modules/eqwad-combo-box/eqwad-combo-box'
                }
            });

            System.import ('app/app').then(null, console.error.bind(console));
        </script>
    </head>
</html>

Import it to your app component.

import { Component, ViewChild } from 'angular2/core';
import { EqwadComboBox } from 'eqwad-combo-box';

@Component({
    selector: 'app',
    templateUrl: 'app.component.html',
    directives: [
        EqwadComboBox
    ]
})
export class AppComponent {
    fabrics = [
        { name: 'Cotton', id: '1' },
        { name: 'Polyester', id: '2' },
        { name: 'Cotton/Polyester', id: '3' },
        { name: 'Rib Knit', id: '4' }
    ];

    @ViewChild('fabricsComboBox') fabricsComboBox: EqwadComboBox;

    constructor() {
        select(item: Object) {
            // Handle the event.
        }
    }
}

Declare it in the component's HTML file.

<eq-combo-box #fabricsComboBox
    [items]=fabrics
    [itemValueField]="'id'"
    [itemTextField]="'name'"
    [placeholder]="'Select fabric...'"
    (onSelect)="select($event)">
</eq-combo-box>

Keywords

FAQs

Package last updated on 25 Aug 2016

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