ng2-select-base

WebJar for ng2-select-base

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-valor-software-ng2-select-
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

ng2-select-base
WebJar for ng2-select-base
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/valor-software/ng2-select

Download github-com-valor-software-ng2-select-

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-valor-software-ng2-select-/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-valor-software-ng2-select-</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-valor-software-ng2-select-/
implementation 'org.webjars.npm:github-com-valor-software-ng2-select-:1.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-valor-software-ng2-select-/
implementation ("org.webjars.npm:github-com-valor-software-ng2-select-:1.2.0")
'org.webjars.npm:github-com-valor-software-ng2-select-:jar:1.2.0'
<dependency org="org.webjars.npm" name="github-com-valor-software-ng2-select-" rev="1.2.0">
  <artifact name="github-com-valor-software-ng2-select-" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-valor-software-ng2-select-', version='1.2.0')
)
libraryDependencies += "org.webjars.npm" % "github-com-valor-software-ng2-select-" % "1.2.0"
[org.webjars.npm/github-com-valor-software-ng2-select- "1.2.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Native UI Select Angular component (demo)

ng2-select npm version npm downloadsslack

Angular 2 Style Guide Build Status

Quick start

  1. A recommended way to install ng2-select is through npm package manager using the following command:

npm i ng2-select --save

  1. Include ng2-select.css in your project

  2. More information regarding of using ng2-select is located in demo and demo sources.

API

Properties

  • items - (Array<any>) - Array of items from which to select. Should be an array of objects with id and text properties. As convenience, you may also pass an array of strings, in which case the same string is used for both the ID and the text. Items may be nested by adding a children property to any item, whose value should be another array of items. Items that have children may omit having an ID. If items are specified, all items are expected to be available locally and all selection operations operate on this local array only. If omitted, items are not available locally, and the query option should be provided to fetch data.
  • active (?Array<any>) - selection data to set. This should be an object with id and text properties in the case of input type 'Single', or an array of such objects otherwise. This option is mutually exclusive with value.
  • allowClear (?boolean=false) (not yet supported) - Set to true to allow the selection to be cleared. This option only applies to single-value inputs.
  • placeholder (?string='') - Placeholder text to display when the element has no focus and selected items.
  • disabled (?boolean=false) - When true, it specifies that the component should be disabled.
  • multiple - (?boolean=false) - Mode of this component. If set true user can select more than one option. This option only applies to single-value inputs, as multiple-value inputs don't have the search input in the dropdown to begin with.

Events

  • data - it fires during all events of this component; returns Array<any> - current selected data
  • selected - it fires after a new option selected; returns object with id and text properties that describes a new option.
  • removed - it fires after an option removed; returns object with id and text properties that describes a removed option.
  • typed - it fires after changing of search input; returns string with that value.

Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

License

The MIT License (see the LICENSE file for the full text)

org.webjars.npm

Valor Software

Leader in the Angular development space since 2013. Creators of ngx-bootstrap. We provide design, architecture, engineering, product guidance and open source.

Versions

Version
1.2.0