I need to install this timePicker in ember-cli.
I have added library in vendor folder and imports in Brocfile.js:
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
app.import('vendor/timePicker/jquery-ui-timepicker-addon.js');
app.import('vendor/timePicker/jquery-ui-sliderAccess.js');
module.exports = app.toTree();
I have created components/jquery-ui-timepicker-addon.js:
import Em from "ember";
export default Em.TextField.extend({
dateFormat:'yy-mm-dd',
timeFormat: 'HH:mm:ss',
stepHour: 1,
stepMinute: 1,
stepSecond: 1
});
and I need to call this from a template, but I don't know how.
I suppose that the code is something similar to:
{{jquery-ui-timepicker-addon}}
but nothing happens.
Could you help me?
Regards.
Aucun commentaire:
Enregistrer un commentaire