Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
ember-bootstrap-datetimepicker
Advanced tools
Datetimepicker add-on for ember-cli
ember install ember-bootstrap-datetimepicker
Generate blueprints
ember generate ember-bootstrap-datetimepicker
There are some breaking-changes when using this addon > v0.4.1
Two-way bindings are replaced by data down, actions up (DDAU). See: http://emberjs.com/blog/2015/06/12/ember-1-13-0-released.html#toc_ember-2-0-beta
Before:
{{bs-datetimepicker date=mydate format='YYYY-MM-DD'}}
After:
{{bs-datetimepicker date=mydate format='YYYY-MM-DD' updateDate=(action (mut model.date2))}}
{{bs-datetimepicker date=mydate format='YYYY-MM-DD'}}
The twitter bootstrap resources will not be imported to your resources by default. If you want the add-on to add it you have to specify it in the ember-cli-build.js
. (This options will be deprecated)
var app = new EmberApp(defaults, {
'ember-bootstrap-datetimepicker': {
"importBootstrapCSS": true,
"importBootstrapJS": true,
"importBootstrapTheme": true
}
});
Check out the demo on github pages. Alternatively you can clone this repo and run the app
sudo npm install -g ember-cli
git clone https://github.com/plusacht/ember-bootstrap-datetimepicker.git
cd ember-bootstrap-datetimepicker
npm install; bower install
ember serve
All options supported offered by bootstrap-datetimepicker are supported
Type: Date
This variable will be changed when the user changes the date and on the other side it will update the datetime picker when "date" is updated
Type: Date
When you change this variable the component trigger an update to the minDate on the jQuery plugin.
Type: Date
When you change this variable the component trigger an update to the maxDate on the jQuery plugin.
Type: Date
When you change this variable the component trigger an update to the disabledDates on the jQuery plugin.
Type: Array Date
When you change this variable the component trigger an update to the enabledDates on the jQuery plugin.
Type: Boolean
Forces the parameter to updateDate
to be a native javascript Date instead of a moment.js Date.
Type: String
Placeholder support when input field is blank
Define your model
var App.DateExample = Ember.Object.create({
date1: moment(),
mindate: moment("2014-11-01"),
maxdate: moment("2015-12-01"),
disabled:true});
}
Add the component to your template and bind the model.mindate with the component's minDate.
{{bs-datetimepicker date=date1 minDate=mindate maxDate=maxdate}}
Change minDate so the jquery plugin will be updated with the minDate value
App.DateExample.set('maxdate', moment("2015-03-01"));
0.4.0 - 0.4.1
This add-on is based on bootstrap-datetimepicker
plus8 gmbh © 2014-2015
1.1.0
contains
deprecation warning after Ember 2.8 upgrade #85FAQs
Datetimepicker add-on for ember-cli
The npm package ember-bootstrap-datetimepicker receives a total of 70 weekly downloads. As such, ember-bootstrap-datetimepicker popularity was classified as not popular.
We found that ember-bootstrap-datetimepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.