0.0.18 • Published 7 years ago

ng2-select-view v0.0.18

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

Angular Select View

Group of components to enhance the functionality of a select list. Influenced largely by the select2 project.

Currently select2@3.5.1 will need to be installed along side this project and css included in your html for it to work.

Installation

npm install select2@3.5.1 ng2-select-view --save

Usage

In your html page

<!doctype html>
<html>
    <head>
        ...
        <link rel="stylesheet" href="node_modules/select2/select2.css" />
        <link rel="stylesheet" href="node_modules/select2/select2-bootstrap.css" />
        ...
    </head>
    ...
</html>
import {NgModule} from "@angular/core";
import {SelectViewModule} from "ng2-select-view/lib/select-view.module";

@NgModule({
  ...
  imports:      [
    ...,
    SelectViewModule
  ],
  ...
})
export class AppModule { }

Somewhere in your project

<c-list-one [options]="[{key: '1', value: 'Hello', {key: '2', value: 'Goodbye'}}]" [(ngModel)]="myValue"></c-list-one>
<c-list-many [options]="[{key: '1', value: 'Hello'}, {key: '2', value: 'Goodbye'}]" [(ngModel)]="myListValue"></c-list-many>
0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago