timer – spinner control for jquery-ui

Questionstimer – spinner control for jquery-ui
Ricardo Hernández López asked 11 years ago

how to embed spinner control for jquery-ui ?
http://jqueryui.com/spinner/#time

how do I add a field type time from 'SQL SERVER'?
$col["formatter"] = "time"; ??

1 Answers
Abu Ghufran answered 11 years ago

Hello,

this will format as date time — but show only date using timeonly setting

$col["formatter"] = "datetime";
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'d-M-Y H:i',"opts" => array("timeOnly" => true));
$cols[] = $col;

I've also sent you sample code on email.

Your Answer

12 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?