项目
在 GitHub 查看
ttskch/select2-bootstrap4-theme
关于
Select2 v4 theme for Bootstrap4
网站与应用开发实测星标增长
- 24小时
- -1
- 7天
- -2
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文select2-bootstrap4-theme
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
- Fix src/_layout.scss, src/_single.scss or src/_multiple.scss
- Do
npm run build:both - Send me a Pull Request
You can use docs dir for your development.
- Do
npm run prepare(this creates symlink todist/select2-bootstrap4.cssontodocs) - Serve
docswith your local web server (e.g.php -S localhost:8888 -t docs) - Do
npm run watch - Tweak scss and browse demo page on your browser
探索相关项目
加载中…