Project

General

Profile

How to add datepicker to custom plugin

Added by Pavel Potcheptsov over 9 years ago

I made Polls plugin by following Plugin Tutorial.
Could someone explain how to add datepicker on that plugin and extend polls table with datetime column so it will be possible for example to select date range and get Yes/No answers for that period.


Replies (1)

RE: How to add datepicker to custom plugin - Added by Yassine Chaieb over 8 years ago

Hello,

There are a defined function that allow you to add a datepicker in a field you want :

calendar_for(field_id)
    (1-1/1)