andrey613 / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

jqueryDateFormat #166

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I'm trying to get date control to use another date format.
My searches through previous issues and svn logs leave me a bit lost.

So was there a form attribute named jqueryDateFormat ? Where is it gone now ? 
Or is there another way to configure jQueryUI settings ?

Thank you.

Original issue reported on code.google.com by rocky.bz...@gmail.com on 23 Apr 2012 at 11:49

GoogleCodeExporter commented 8 years ago
All the jquery options are now supplied through the "jQueryOptions" property.  
I would suggest joining the project's Google Group at 
https://groups.google.com/forum/?fromgroups#!forum/php-form-builder-class.  
You'll find the answer to this question (and many others) here.

$form->addElement(PFBC\Element\Date("My Date:", "Date", array(
    "jQueryOptions" => array(
        "dateFormat" => "yy-mm-dd"
    )
)));

Original comment by ajporterfield@gmail.com on 23 Apr 2012 at 1:15