select2-bootstrap-css

WebJar for select2-bootstrap-css

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

select2-bootstrap-css
Last Version

Last Version

1.4.6
Release Date

Release Date

Type

Type

jar
Description

Description

select2-bootstrap-css
WebJar for select2-bootstrap-css
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/t0m/select2-bootstrap-css

Download select2-bootstrap-css

How to add to project

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

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.

Select2 Bootstrap CSS

Simple CSS to make Select2 widgets fit in with Bootstrap.


  • This branch (master) contains the legacy version for Bootstrap 2.
  • The legacy bootstrap 3 branch is here: bootstrap3 branch.*

The LESS file is located at lib/select2-bootstrap.less, and the SCSS file is located at lib/select2-bootstrap.scss.

Tests are included to verify that LESS and SCSS compile down to the target CSS. To run the tests, you'll need to install node.js, Less, and SASS. Then you can run:

npm install && bower install
npm test

Notable Changes

Versions prior to 1.2.0 included a default width for select2 containers. Applying the class "input-default" to your select will line the select2 container up with a default bootstrap text input.

Compass

This library can also be used as a Compass plugin.

Gemfile:

gem 'select2-bootstrap-css'

compass.rb:

require 'select2-bootstrap-css'

Your scss file:

@import 'select2-bootstrap';

Demos

http://t0m.github.io/select2-bootstrap-css/

Versions

Version
1.4.6