ember-cli-bootstrap-datepicker
Advanced tools
Comparing version 0.0.3 to 0.0.4
module.exports = { | ||
normalizeEntityName: function() {}, | ||
afterInstall: function() { | ||
@@ -3,0 +5,0 @@ return this.addBowerPackageToProject('bootstrap-datepicker'); |
{ | ||
"name": "ember-cli-bootstrap-datepicker", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"directories": { | ||
@@ -13,7 +13,7 @@ "doc": "doc", | ||
}, | ||
"repository": "https://github.com/stefanpenner/ember-cli", | ||
"repository": "https://github.com/soulim/ember-cli-bootstrap-datepicker", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"author": "", | ||
"author": "Alex Sulim", | ||
"license": "MIT", | ||
@@ -36,4 +36,4 @@ "devDependencies": { | ||
"ember-addon", | ||
"ember-datepicker", | ||
"bootstrap-datepicker", | ||
"bootstrap", | ||
"datepicker" | ||
@@ -40,0 +40,0 @@ ], |
@@ -1,25 +0,72 @@ | ||
# Ember CLI datepicker based on bootstrap-datepicker | ||
# Ember CLI datepicker | ||
The addon can be used in Ember CLI applications. It's based on [bootstrap-datepicker](https://github.com/eternicode/bootstrap-datepicker). | ||
The addon provides you a `bootstrap-datapicker` input component. It can be used in Ember CLI applications. | ||
The input component is based on [bootstrap-datepicker library](https://github.com/eternicode/bootstrap-datepicker). | ||
## Installation | ||
* `git clone` this repository | ||
* `npm install` | ||
* `bower install` | ||
```bash | ||
npm install --save-dev npm install --save-dev ember-cli-bootstrap-datepicker | ||
ember generate bootstrap-datepicker | ||
``` | ||
## Running | ||
## Usage | ||
* `ember server` | ||
* Visit your app at http://localhost:4200. | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt}} | ||
``` | ||
## Running Tests | ||
The component supports many options of the bootstrap-datepicker library: | ||
* `ember test` | ||
* `ember test --server` | ||
* **autoclose**, default value `true` | ||
* **format**, default value `dd.mm.yyyy` | ||
* **weekStart**, default value 1 (Monday) | ||
* **todayHighlight**, default value `false` | ||
* **todayBtn**, default value `false` | ||
## Building | ||
Let me show you how to use all these options. | ||
* `ember build` | ||
Autoclose: | ||
For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/). | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt autoclose=false}} | ||
``` | ||
Format: | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt format='dd/mm/yy'}} | ||
``` | ||
weekStart: | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt weekStart=0}} | ||
``` | ||
todayHighlight: | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt todayHighlight=true}} | ||
``` | ||
todayBtn: | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt todayBtn=true}} | ||
``` | ||
All options at once: | ||
```handlebars | ||
{{bootstrap-datepicker value=expiresAt autoclose=false format='dd/mm/yy' weekStart=0 todayHighlight=true todayBtn=true}} | ||
``` | ||
## Contributing | ||
1. Fork it | ||
2. Create your feature branch (`git checkout -b my-new-feature`) | ||
3. Commit your changes (`git commit -am 'Add some feature'`) | ||
4. Push to the branch (`git push origin my-new-feature`) | ||
5. Create a new Pull Request |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14347
198
2
73