select2-bootstrap4-theme

WebJar for select2-bootstrap4-theme

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-berkanakyurek-select2-bootstrap4-theme
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

select2-bootstrap4-theme
WebJar for select2-bootstrap4-theme
Project URL

Project URL

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

Source Code Management

https://github.com/berkanakyurek/select2-bootstrap4-theme

Download github-com-berkanakyurek-select2-bootstrap4-theme

How to add to project

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

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 Bootstrap4 Theme

select2-bootstrap4-theme version License

Compatibility

Tested with Bootstrap v4.1.1 and Select2 v4.0.6rc1 in latest Firefox, Chrome and Safari (Mac).

Installation

  • Download the latest release.
  • Clone the repo: git clone https://github.com/berkan52/select2-bootstrap4-theme.git.
  • Install with Bower: bower install select2-bootstrap4-theme.
  • Install with npm: npm install select2-bootstrap4-theme.

Usage

select2-bootstrap4-theme only works with Select2 v4.x. Applying the theme requires select2-bootstrap4.css referenced after the default select2.css that comes with Select2:

<link rel="stylesheet" href="select2.css">
<link rel="stylesheet" href="select2-bootstrap4.css">

To apply the theme, tell Select2 to do so by passing bootstrap to the theme option when initializing Select2:

$( "#dropdown" ).select2({
    theme: "bootstrap4"
});

You may also set it as the default theme for all Select2 widgets like so:

$.fn.select2.defaults.set( "theme", "bootstrap4" );

Changelog

Version 1.0.2
  • Latest build for Bootstrap 4.1.1
Version 1.0.1
  • Fixed some bugs when running npm run dev;
Version 1.0.0
  • Create project

Copyright and license

The license is available within the repository in the LICENSE file.

Versions

Version
1.0.1