Symfony plugins – sfJQueryUIPlugin

It is Symfony plugin written by me.

This is form widget plugin. Currently available is only one widget, sfWidgetFormDateJQueryUI which uses jQuery DatePicker to choose date. Widget displays one input tag (not three seperated input tags for year, month and day like sfFormExtraPlugin).

Try out demonstration

Learn more…

6 Comments

  1. Erin says:

    Would you consider adding some template helper functions as part of this plugin? Or would you prefer to keep it as form widgets only?

    I would like to see a symfony plugin that could make use of the jQuery UI Dialog system (http://jqueryui.com/demos/dialog/) to, for example, create a modal window that loads content using AJAX.

    Let me know what you think, I may be able to provide some development time if you’re interested.

  2. Artur Rozek says:

    Well, I want to keep it as widgets only but your idea is fine. You can create class extending sfForm making it look like modal dialog. If so I can add it to plugin.

  3. Erin says:

    I don’t think this would be the best way to implement the Dialog system, as it would not just be for forms but other content also. I’ll try to knock up a demo at some point and send you a link to clarify what I mean.

    The reason I thought you might consider adding non-form related features is because the plugin name “sfJQueryUIPlugin” doesn’t really imply that the plugin is for form widgets only.

    jQuery UI has a lot of useful features that could be applied outside of forms, so perhaps the plugin should be called “sfJQueryUIFormsPlugin” if it is only going to be forms related?

  4. Artur Rozek says:

    You are right. jQuery UI has many more features which can be included in this plugin. Try to make a demo or send me a code.

  5. fizyk says:

    Hey, nice piece of work.
    I had problems when using this with jquery 1.7.2 (the one included in diem).
    When the culture was set, it stopped showing any datepicker I had.

  6. Artur Rozek says:

    What culture did you set ?

Leave a Reply