Comments (10)
Another datepicker option that would be helpful:
buttonText -- this would allow me to specify the text for the button instead of using the text "Open Month Chooser"
from jquery-ui-month-picker.
This is a reasonable request that should not take too long, sure. I will take a look at it this weekend and post back here!
from jquery-ui-month-picker.
good plugin, and works well with html5 month input. What I would like to see is the ability to set: Min, Max, Start values or atleast not allow historic values. keep up the good work..
from jquery-ui-month-picker.
This was the best month selector I found for my purposes.
I've implemented some enhancements:
- The selected date is now highlighted in green,
EarliestMonthSelectable
andLatestMonthSelectable
options have been added so that the range of months that can be picked can be restricted,- The
AlwaysShown
option has been added, which keeps the picker displayed, allowing things like the month input field to be hidden, and an automatic submit on selection, and - To prevent confusion, the currently-selected year title is now hidden when years rather than months are being selected (any problems with this?)
Demos at http://jsfiddle.net/rbate/L5qr28d0/
Repository at https://github.com/mrj/jquery-ui-month-picker
I can do a pull request once the changes get settled.
from jquery-ui-month-picker.
Wow I am totally blown away at this Mark! Great work! Somehow I knew that if I were to blow off all of these requests that someone might come in and do them! I am just kidding, really I am just busy and very grateful for your assistance!
This is outstanding work for the following reasons...
- You looked through the forum to find things other folks wanted that you could implement while you were in there doing things for yourself... Very cool. I love the idea of the green selected month, the button color is CSS controlled, awesome. The date restrictions must have been the toughest part, very impressive work! Keeping the Picker visible is going to be useful, I can tell already. I have no issues with the year getting hidden at the right time, I think this provides another good UI indication of which mode the picker is in.
- You forked the JS Fiddle, linked the original, provided a list of changes and demonstrations.
- Since you forked the Fiddle, I can tell your changes did not break any existing Unit Tests, so we know things should be playing nicely.
Well Done!
For your hard work and contribution, I am very pleased to work with you and I will support whatever it is you need.
I could help put in a few unit test assertions if you need anything there, so many testing frameworks out there I know, but I think it is a great idea to get a couple of tests in the Fiddle. Let me know, this part is not required for a pull request, it's just for the JS Fiddle demo.
Let's continue to test it here and when you are comfortable, send me a Pull Request, I will bump and merge.
Please let me know if there is anything else you need.
-kid
from jquery-ui-month-picker.
Thanks kid for your kind comments. Though I'd read this thread beforehand, and so knew others wanted selection limits, my motivation was to implement the features I needed. I'm just glad there was such a nice widget on which to build, which saved me a lot of time.
I'll work on adding some test assertions on JSFiddle for the new features. I'm very glad you put together all those tests in the first place, because they exposed a few bugs in my code.
One further addition I think would be helpful would be to set the CSS so that users are made aware that the year title is a link, perhaps even with a tooltip that explains what clicking it does. Also disabling text selection on the title would prevent ugly highlighting when trying to click a button that has disappeared.
What made you choose to go back & forward 5 years with year paging, rather than a full 12-year page? I think there's merit in keeping years in the same position.
from jquery-ui-month-picker.
Hi Mark,
I really like every idea you have here. The year link could use a bit more work as you say.
And a 12 year paging routine... Yea, of course... I am trying to understand why I didn't think of that but I don't know... I just didn't I guess. But I think that idea is perfect.
from jquery-ui-month-picker.
Any updates on this?
from jquery-ui-month-picker.
Mrj's fork still exists, we might want to steal on a few of his ideas. I will leave this open for now.
from jquery-ui-month-picker.
I believe this was fixed thanks to Benjamin! Woot!
from jquery-ui-month-picker.
Related Issues (20)
- Datepicker's events no longer works HOT 1
- Suggestion: Add a reference to the monthpicker element for OnBeforeMenuOpen
- Wiki has an error for default Duration value
- jQuery Month picker dropdown dialog misaligned when zoomed in or zoomed out a webpage (refer the 3 images given) HOT 3
- show years first? HOT 1
- Fill in 2 hidden input field HOT 6
- Autoclose Support HOT 9
- Add support for Week/Year picker HOT 2
- Get the selected year HOT 6
- Jquery on Change HOT 5
- How to enable the year only? HOT 1
- Add source to project HOT 1
- Error: MonthPicker can only be called on text or month inputs. HOT 6
- ASP.NET Core 2.2?
- MonthPicker Error: The jQuery UI button and datepicker plug-ins must be loaded. HOT 1
- Fix broken links in Home wiki page
- Setting date manually. HOT 2
- How can i destroy Month Picker?
- "Jump Years" hint isn't working with jQuery 3.6.0 and jQuery UI 1.12.0
- MinMonth and MaxMonth aren't working with jQuery 3.6.0 and jQuery UI 1.12.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-ui-month-picker.