Jump to content


adding datepicker

datepicker jquery field_type

  • Please log in to reply
1 reply to this topic

#1 Charles A.

Charles A.

    Member

  • Members
  • PipPip
  • 17 posts

Posted 11 July 2013 - 03:15 AM

Hi, is there any way to change the field type to (time) "timepicker" or any clues on how to implement it? I want to store TIME format 00:00:00 on mySQL.- I'm using datatables theme.

 

Something like this:

http://trentrichards...slider_examples

 

datepicker.png

 

Any ideas??

 

Thanks!!



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 11 July 2013 - 08:10 AM

Hello Charles.

Just go to your phpMyAdmin or whatever tool you use to alter the database and add a new field of type time.

Then you need to inject some js to your DOM as it is shown here: 

http://trentrichards...les/timepicker/

 

 

You can use the undocumented public function set_js($js_file)

and put this file under base_url.


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr






Also tagged with one or more of these keywords: datepicker, jquery, field_type

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users