Coder Social home page Coder Social logo

Comments (5)

j-5-s avatar j-5-s commented on May 20, 2024

So this happens if you dont set an attribute with a value prior to setting the form. I added a default value if empty for date, but the datepicker still does not seem to render.

https://github.com/jamescharlesworth/backbone-forms/commit/9992e750c446585a1d2f15f32fee4f37e6a68dcb#src/jquery-ui-editors.js

from backbone-forms.

powmedia avatar powmedia commented on May 20, 2024

Thanks James, will look into this

from backbone-forms.

j-5-s avatar j-5-s commented on May 20, 2024

No problem. Looks like the datepicker has some issues when being rendered with dom elements. Appending the html of the widget to exports.Date seemed to do the trick.

https://github.com/jamescharlesworth/backbone-forms/commit/ad74e7d7217283ac3949130de87c841014d499f1

Let me know if you think there is a better way to accomplish this. Thanks!
James

from backbone-forms.

powmedia avatar powmedia commented on May 20, 2024

I've pushed an update that includes setting the default Date, as well as a UI test for dates and datepickers - see if the date editors work for you now. If you open test/index.html and go to the bottom of the page you should see the Date, DatePicker and List editors on the page.

from backbone-forms.

j-5-s avatar j-5-s commented on May 20, 2024

Thanks. The date issue seems to be fixed, but the calendar still does not load for me when called after the dom has already loaded. Most likely a mistake on my implementation, but will let you know it it turns out to be your code.

from backbone-forms.

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.