ryannerd / ember-power-timepicker Goto Github PK
View Code? Open in Web Editor NEWAn Ember time-picker component that leverages the excellent Ember Power Select for a single purpose
License: MIT License
An Ember time-picker component that leverages the excellent Ember Power Select for a single purpose
License: MIT License
When using military=true the earliest time I can select is 01:00 and latest time is 24:59. I believe this should be 00:00 to 23:59
When running the example, it looks like onchange is being hit on first load?
Is this normal?
init()
- Calculated the times[] should use getFormattedTime?getFormattedTime()
use the zeroPad function?NPM Audit is BROKEN!
Ultimately will create a webpage that showcases the component.
The following assertion bubbles up when trying to clear the selected time (hitting the cross) picked in the provided 'Simple Example' from the Readme.md:
Uncaught TypeError: timeString must be a non-empty string.
at Class.hours (time-picker.js:463)
at Class.onchange (time-picker.js:17)
at Backburner.join (backburner.js:576)
at Function.run.join (ember-metal.js:4393)
at action.js:389
at exports.flaggedInstrument (ember-metal.js:3787)
at action.js:388
at Class.select (power-select.js:312)
at Class.send (action_support.js:128)
at Class.superWrapper [as send] (ember-utils.js:437)
The configuration is as follows:
{{time-picker selectedTime=timeSelected onchange=(action "onChange") increment=5 }}
import Controller from '[at]ember/controller';
export default Controller.extend(
{
timeSelected: null,
time: null,
actions:
{
onChange(value)
{
this.set('time', value);
}
}
});
My company is moving from Ember to React and as such I'm not going to have time for side projects.
If you are interested in owning and maintaining this project let me know by posting an issue.
Going forward only security related fixes will be worked on and published.
closeOnSelect
loadingMessage
matchTriggerWidth
afterOptionsComponent
beforeOptionsComponent
triggerClass
Hi!
First of all, thank you for creating this addon, I just needed a neat and simple timepicker and stumbled upon yours! Works great!
Ember-power-select has a triggerClass
property that can be used to apply a class to the trigger only, and it's really useful (for applying let's say a background icon on the trigger).
It would be great to have the ability to do so with your timepicker.
Let me know if you think it's a good idea!
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.