Giter Site home page Giter Site logo

Comments (9)

 avatar commented on July 18, 2024 1

@rvalenciano thankyou, so much I just stumbled upon the same solution too.. When I do this, the field is empty as expected, but when I click on the date field, the datepicker shows as "Invalid Date" to something like "Click to select a date" on the title bar. Any way to change that text?
image

Thank you, so much for responding to my question.

from ng2-datepicker.

jkumawat avatar jkumawat commented on July 18, 2024

Got it working. We do not need to Initialize Date if model value is null.

from ng2-datepicker.

jkuri avatar jkuri commented on July 18, 2024

Glad you got it working.

On Tuesday, 23 February 2016, Jeetendrakumar Kumawat <
[email protected]> wrote:

Got it working. We do not need to Initialize Date if model value is null.


Reply to this email directly or view it on GitHub
#12 (comment)
.

from ng2-datepicker.

 avatar commented on July 18, 2024

hi jkumawat,

May I know how to set the model value to null? I am looking for a solution for the same thing too.

thank you, in advance.

from ng2-datepicker.

rvalenciano avatar rvalenciano commented on July 18, 2024

@Omnisri please see this:

https://stackoverflow.com/a/48175624/3558900

from ng2-datepicker.

rvalenciano avatar rvalenciano commented on July 18, 2024

@Omnisri I think we need to modify this line:

this.barTitle = format(start, this.barTitleFormat, this.locale);
to actually check if we have an empty value, then assign 'Click to select a date', I can open a PR in the next hours.

from ng2-datepicker.

 avatar commented on July 18, 2024

greatly appreciate prompt response @rvalenciano. I will give it a try and wait for the update :)

from ng2-datepicker.

 avatar commented on July 18, 2024

I have raised another issue for ng2-datepicker. anyone can take a look at it and give me some pointers please? #290

from ng2-datepicker.

rvalenciano avatar rvalenciano commented on July 18, 2024

@Omnisri #291 was merged, you can customize your message now.

from ng2-datepicker.

Related Issues (20)

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.