Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
Close: ttskch#66
  • Loading branch information
tagliala committed Mar 14, 2021
1 parent 4a90287 commit e1c33cc
Show file tree
Hide file tree
Showing 15 changed files with 407 additions and 374 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

```html
<link rel="stylesheet" href="/path/to/select2.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ttskch/select2-bootstrap4-theme@x.x.x/dist/select2-bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ttskch/select2-bootstrap4-theme@x.x.x/dist/select2-bootstrap5.min.css">
```

### Manually
Expand All @@ -36,14 +36,14 @@ $ composer require ttskch/select2-bootstrap4-theme

```html
<link rel="stylesheet" href="/path/to/select2.css">
<link rel="stylesheet" href="/path/to/select2-bootstrap4.min.css">
<link rel="stylesheet" href="/path/to/select2-bootstrap5.min.css">
```

## Usage

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

Expand All @@ -55,7 +55,7 @@ $('select').select2({

You can use [docs](docs) dir for your development.

1. Run `npm run prepare` (this creates symlink to `dist/select2-bootstrap4.css` onto `docs`)
1. Run `npm run prepare` (this creates symlink to `dist/select2-bootstrap5.css` onto `docs`)
1. Serve `docs` from your local web server, examples:
- Using PHP: `php -S localhost:8888 -t docs`
- Using Python 3: `python3 -m http.server -d docs 8888`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"select2",
"theme",
"bootstrap",
"bootstrap4",
"bootstrap5",
"css",
"scss"
],
Expand Down
199 changes: 0 additions & 199 deletions dist/select2-bootstrap4.css

This file was deleted.

2 changes: 0 additions & 2 deletions dist/select2-bootstrap4.min.css

This file was deleted.

Loading

0 comments on commit e1c33cc

Please sign in to comment.