@ttskch/select2-bootstrap4-theme

WebJar for @ttskch/select2-bootstrap4-theme

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ttskch__select2-bootstrap4-theme
Last Version

Last Version

1.5.2
Release Date

Release Date

Type

Type

jar
Description

Description

@ttskch/select2-bootstrap4-theme
WebJar for @ttskch/select2-bootstrap4-theme
Project URL

Project URL

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

Source Code Management

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

Download ttskch__select2-bootstrap4-theme

How to add to project

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

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

npm version npm Packagist Version Packagist Downloads

Select2 v4 theme for Bootstrap4 (Compatible to boostrap 4.0.0+)

Live demo

👉 https://ttskch.github.io/select2-bootstrap4-theme/

Installation

CDN

<link rel="stylesheet" href="/path/to/select2.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ttskch/[email protected]/dist/select2-bootstrap4.min.css">

Manually

# npm
$ npm install @ttskch/select2-bootstrap4-theme

# yarn
$ yarn add @ttskch/select2-bootstrap4-theme

# composer
$ composer require ttskch/select2-bootstrap4-theme
<link rel="stylesheet" href="/path/to/select2.css">
<link rel="stylesheet" href="/path/to/select2-bootstrap4.min.css">

Usage

$('select').select2({
    theme: 'bootstrap4',
});

Getting involved

  1. Fix src/_layout.scss, src/_single.scss or src/_multiple.scss
  2. Do npm run build:both
  3. Send me a Pull Request

You can use docs dir for your development.

  1. Do npm run prepare (this creates symlink to dist/select2-bootstrap4.css onto docs)
  2. Serve docs with your local web server (e.g. php -S localhost:8888 -t docs)
  3. Do npm run watch
  4. Tweak scss and browse demo page on your browser

Versions

Version
1.5.2
1.4.0
1.3.4
1.3.2
1.2.3
1.2.2
1.0.5