Coder Social home page Coder Social logo

chingyawhao / materialize-clockpicker Goto Github PK

View Code? Open in Web Editor NEW
142.0 9.0 71.0 1.68 MB

A materialize clockpicker, demo on

Home Page: http://chingyawhao.github.io/materialize-clockpicker.html

License: MIT License

CSS 24.47% HTML 13.32% JavaScript 62.21%

materialize-clockpicker's People

Contributors

chingyawhao avatar domicode avatar giwi avatar joalvm avatar robokozo avatar victor-perez avatar yhching avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

materialize-clockpicker's Issues

Unable to integrate with explicit materialize library

I am using materialize library in my angular js web app. Am also using grunt as my building tool. Due to my existing materialize library am getting conflict using materialize clockpicker library as it is dependent on some lower version on Materialize (as specified in your package.json file.). Due to this am unable to use the clock pickers when am creating a build using grunt.

Kindly help me sort out this issue.

Safari - Clockpicker is cutoff by modal overlay

I tried opening a clockpicker from a modal. In chrome everything is fine, but on safari the clockpicker is cutoff. I played with the css, particularly, the z-index and couldn't figure out why.

Ability to choose just x minutes

For example, I have a thing like "How many minutes until you arrive?" and would like a 5-10-15-20 minute picker similar to yours

Rename picker__date-display to get compatibility with datepicker from materialize.

I'm using your clockpicker library in combination with the timepicker from materialize.

Both of them are using the picker__date-display class for the div containing the date or the time. By using the same class the styling gets overridden.

Is it possible to change the class maybe to picker__time-display? If so, I could offer a pull request.

Step of 15min

Hi and thans for bring a Time Picker into Materialize :)

I just want to make the minutes picker step with 15min (00-15-30-45). I had succeed to hide the other value but I can't prevent the picker to step 1min by 1min. Could you help me? I saw that plenty of ask for it from the wearoutman version, I think it will be helpfull ^^

Couldn't require it as node module

I installed clockpicker as node-module.
npm i materialize-clockpicker --save

Then I imported it as,
require("materialize-clockpicker");
It throws materialize-clockpicker module not found.

If I import it as require it as require("/node_modules/materialize-clockpicker/dist/js/materialize.clockpicker.js")
then it throws, pickatime is not a function.

Am I importing it wrong?

hides scroll bar on open

Hi. the scrollbar gets hidden whenever the timepicker opens causing the page to tilt to the right. :)

Dist css sourcemap assumes Materialize was installed using bower

I use this with react and webpack, so I imported the dist css file into my stylesheet in order for it to be bundled. Like this:
@import "../node_modules/materialize-clockpicker/dist/css/materialize.clockpicker.css";

Webpacks css-loader would then complain that the file "/bower_components/Materialize/sass/components/_color.scss" is not in the SourceMap. Which is naturally correct in my case, since I didn't install Materialize using bower.

I solved it manually by deleting the sourcemap line from the dist css file.

Can you fix it so that it doesn't directly depend on Materialize to be installed using bower - there quite a few different "installation methods" after all. (bower, npm, cdn, etc.)

Thank you for a much needed Materialize timepicker though.

clockpicker with model problem

I just created my form in materialize model and used materialize-clockpicker in it. Its working fine from outside the model but when opening in model its opening in model its showing inside the model but i need to append that clock in document body, so is it possible to do this?

Thanks

Webpack & Sass compiler

Sass has a problem when compiling it.

@import "Materialize/sass/components/mixins"; not found ---> when I checked the code in node_modules the materialize components is not there it is lacking..

Webpack has a problem when imported it.

Cannot resolve the file which I cannot see also the .JS file.

Please release 1.0.1 version on npm

Thank you for this package!

But I'm getting the error

Unable to resolve some modules:

  "js/materialize.clockpicker.js" in
[...]/node_modules/materialize-clockpicker/package.json
(web.browser)

because the package.json is not fixed. Please release the latest 1.0.1 version to npm. Thank you!

Add a 'Clear' button

There is no button to reset the selected time as it is there in the Materialize Date Picker. If user wants to clear the text field containing the time. He can't do because clicking on the text field doesn't allow to edit the text as the clock picker is opened.

opening inside a input box, not popping.

I need a time picker for my materializecss web project. your project working fine. but after adding your css and js, its not popping. simply displaying inside input box. Any fix????

jquery `on change` isn't triggered - trying to validate input

My HTML:

<input id="start_time" type="time">

My jquery script:

            $('#start_time').pickatime({
                autoclose: false,
                twelvehour: true
            });

And this is only triggered when I select the time for the first time:

        $(document).on('change','#start_time',function(){ 
            console.log('changed');
        });

When I change the time to something else changed is not logged to console.

Am I missing something basic here or is this a desired behaviour?
How do I proceed with checking if the time has changed?

Create release

Hi ho,

first of all: thx for creating this awesome piece of code.
I am about to integrate your Materialize clock picker into my Yii2 Materialize repo.

Could you please create a release (and further later on when issuing new features or bugfixes)? This makes maintaining and requiring (Composer) easier as I can clearly state the version I need.

Thanks a lot in advance.

Cheers

afterDone callback not working as shown in readme

I tested the code from the readme and the last section contains the code
<script> $('#timepicker').pickatime({ autoclose: false, twelvehour: false, afterDone: function(Element, Time) { console.log(Element, Time); } }); </script>

After testing the callback, undefined is returned for both Element and Time.
Is there a callback for when someone completes the picking process?

Add button to clear picked time

Just as you can clear the date selected using the Materialize Datapicker, it would be neat to be able to clear the picked time as well. For now I've had to settle with adding a button next to the field, to clear it, but that solution isn't pretty - especially with a datepicker right next to it that has a clear button.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.