Giter VIP home page Giter VIP logo

Comments (4)

sogos avatar sogos commented on July 17, 2024

I am working on it today :)

from lexikformfilterbundle.

rvanlaak avatar rvanlaak commented on July 17, 2024

Can you give more info on your usecase? What do you exactly mean with a datepicker? Please take a look in the Symfony field type options:
http://symfony.com/doc/current/book/forms.html#field-type-options

Example options that I use...

'date_widget'    => 'single_text',
'time_widget'    => 'single_text',

from lexikformfilterbundle.

sogos avatar sogos commented on July 17, 2024

In fact, you are wright, it's already working. (Tried to re-submit Form with F5, but not to rebuild Form)

For @nash4ever

        $builder->add('created', 'filter_date_range', array(
         'left_date_options' => array(
            'attr' => array('class' => 'datepicker'),
            'widget'    => 'single_text',
            ),
         'right_date_options' => array(
            'attr' => array('class' => 'datepicker'),
            'widget'    => 'single_text',
            ),
         'label' => 'Collect Period',
         ));

from lexikformfilterbundle.

nash4ever avatar nash4ever commented on July 17, 2024

Thanks for your help!
I use twitter bootsrap in my project, so i created two new form field type /myproject_filter_date_range and myproject_datepicker/, because tb has a special html block for datepicker inputs:

<div class="input-append date" id="dp3" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
    <input class="span2" size="16" type="text" value="12-02-2012">
    <span class="add-on"><i class="icon-th"></i></span>
    </div>

Then i can use it anywhere in my project.

from lexikformfilterbundle.

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.