Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ember-cli-bootstrap-datepicker
Advanced tools
Datepicker component for Ember CLI based on bootstrap-datepicker. It doesn't have any external dependency except bootstrap-datepicker, supports popup and inline modes.
The add-on provides you a date input component based on amazing bootstrap-datepicker library. It supports popup and inline mode, and can be used in Ember CLI applications.
It doesn't have any external dependecy except bootstrap-datepicker.
If you are using Ember CLI 0.2.3 or higher, just run within your project directory:
ember install ember-cli-bootstrap-datepicker
If your Ember CLI version is greater than 0.1.5 and less than 0.2.3, run the following within your project directory:
ember install:addon ember-cli-bootstrap-datepicker
When your Ember CLI version is below 0.1.5, please run within your project directory:
npm install --save-dev ember-cli-bootstrap-datepicker
ember generate bootstrap-datepicker
Basic example:
{{bootstrap-datepicker value=expiresAt}}
Use separate component for inline mode:
{{bootstrap-datepicker-inline value=expiresAt}}
The component supports many options of the bootstrap-datepicker library. Let me show you how to use them :sparkles:
Type: Boolean
Default: false
{{bootstrap-datepicker value=expiresAt autoclose=true}}
Type: Boolean
Default: false
{{bootstrap-datepicker value=expiresAt calendarWeeks=true}}
Type: Boolean
Default: false
{{bootstrap-datepicker value=expiresAt clearBtn=true}}
Type: Array
or String
Default: ""
or []
{{bootstrap-datepicker value=expiresAt daysOfWeekDisabled="1,2"}}
Type: Date
or String
Default: Infinity
(end of time)
{{bootstrap-datepicker value=expiresAt endDate="01/01/2018"}}
Type: Boolean
Default: true
{{bootstrap-datepicker value=expiresAt forceParse=false}}
Type: String
Default: 'mm/dd/yyyy'
{{bootstrap-datepicker value=expiresAt format="dd.mm.yy"}}
Type: Boolean
Default: true
{{bootstrap-datepicker value=expiresAt keyboardNavigation=false}}
Type: String
Default: 'en'
When you need another language, you should import a locale file using your Brocfile.js. Just import bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.<LANGUAGE_CODE>.js
, e.g.:
// Brocfile.js
app.import('bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js');
{{! somewhere in template }}
{{bootstrap-datepicker value=expiresAt language="de"}}
Type: Number
or String
Default: 0
or 'days'
{{bootstrap-datepicker value=expiresAt minViewMode="months"}}
Type: String
Default: 'auto'
{{bootstrap-datepicker value=expiresAt orientation="right"}}
Type: Date
or String
Default: -Infinity
(beginning of time)
{{bootstrap-datepicker value=expiresAt startDate="01/01/2014"}}
Type: Number
or String
Default: 0
or 'month'
{{bootstrap-datepicker value=expiresAt startView="decade"}}
Type: Boolean
or String
Default: false
If true or “linked”, displays a “Today” button at the bottom of the datepicker to select the current date. If true, the “Today” button will only move the current date into view; if “linked”, the current date will also be selected. More...
{{bootstrap-datepicker value=expiresAt todayBtn=true}}
Type: Boolean
Default: false
{{bootstrap-datepicker value=expiresAt todayHighlight=true}}
Type: Number
Default: 0
(Sunday)
{{bootstrap-datepicker value=expiresAt weekStart=1}}
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)The add-on is based on bootstrap-datepicker.
FAQs
Datepicker component for Ember CLI based on bootstrap-datepicker. It doesn't have any external dependency except bootstrap-datepicker, supports popup and inline modes.
The npm package ember-cli-bootstrap-datepicker receives a total of 623 weekly downloads. As such, ember-cli-bootstrap-datepicker popularity was classified as not popular.
We found that ember-cli-bootstrap-datepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.