Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To get up and running quickly with a solid timepicker control and durandal you can follow these steps.</p> <p>Add these scripts to your page in the same order as below order. Add them as standard tags before you load require/durandal.</p> <ol> <li>jQuery <a href="http://jquery.com/" rel="nofollow">http://jquery.com/</a></li> <li>jQueryUI <a href="http://jqueryui.com/" rel="nofollow">http://jqueryui.com/</a></li> <li>this timepicker control (built on jquery ui) <a href="http://fgelinas.com/code/timepicker/" rel="nofollow">http://fgelinas.com/code/timepicker/</a></li> <li>The jQueryUI Knockout bindings by Steve Saunderson that heiserman mentioned. <a href="https://github.com/SteveSanderson/knockout/wiki/Bindings---jqueryui-widgets" rel="nofollow">https://github.com/SteveSanderson/knockout/wiki/Bindings---jqueryui-widgets</a></li> </ol> <p>Here is how you might reference the scripts above, these scripts tags should go into your main layout page, index.html or whichever page is hosting your durandal application:</p> <pre><code>&lt;head&gt; &lt;script src="/Scripts/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="/Scripts/jquery-ui-1.10.0.js"&gt;&lt;/script&gt; &lt;script src="/Scripts/jquery.ui.timepicker.js"&gt;&lt;/script&gt; &lt;script src="/Scripts/knockout-jquery-ui-widget.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/App/durandal/amd/require.js" data-main="/App/main"&gt;&lt;/script&gt; &lt;/head&gt; </code></pre> <p>Then you can simply create a timepicker in your durandal view like this:</p> <pre><code>&lt;input type="text" placeholder="Choose Time" data-bind="jqueryui: { widget: 'timepicker', options: { showPeriod: true }}"&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload