Hi Bryn,

On Tue, Feb 24, 2015 at 6:51 AM, Bryn Jeffries
<bryn.jeffr...@sydney.edu.au> wrote:
> Hi,
>

> Is there a preferred Time Picker widget for XWiki? I see that there is a date 
> picker 
> (http://extensions.xwiki.org/xwiki/bin/view/Extension/Date+Picker+for+an+input+element)
>  but what I'd like is something to specifically picker the hour and minute of 
> a day.

If you need both the day of month and the time of day then you can use
the snippet you mentioned. Just replace the date format. For instance:

#set ($format = 'dd/MM/yyyy HH:mm')

See http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
for more information on the date format.

>

> I've seen a few mentions of Bootstrap in recent devs activity, and there's a 
> lovely looking timepicker for that 
> (http://jdewit.github.io/bootstrap-timepicker/) so I'd value guidance on 
> using that if it's an option.

If you need only the time of day then I guess this is better. There is
a webjar available for it (see http://www.webjars.org/ ) that you can
install with the Extension Manager from the wiki administration. Use
the advanced search to locate it:

Extension Id: org.webjars:bootstrap-timepicker
Version: 0.2.3-1

Then you can use the WebJar script service API (
http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration
) along with Require.js to load the widget and use it.

Hope this helps,
Marius

>
> Thanks,
>
> Bryn
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to