I am working on ASP.NET mvc 4.0 application using John Papa hot towel architecture.
我正在使用John Papa热毛巾架构研究ASP.NET mvc 4.0应用程序。
I want to add a J Query Calendar control to my view.
我想在我的视图中添加一个J Query Calendar控件。
I can place the the date picker in my html file.
我可以将日期选择器放在我的html文件中。
how should i place the j query code which prompts the display of calendar on the click on user to the text box (i need to include the j query libraries but i dont know how to do it in Durandal Js.
我应该如何将用于点击用户的日历显示的j查询代码放置到文本框中(我需要包含j个查询库,但我不知道如何在Durandal Js中进行操作)。
this is how my javascript page looks like right now
这就是我的javascript页面现在的样子
define(['services/logger'], function (logger) {
var title = 'Development Plan';
var vm = {
activate: activate,
title: title
};
return vm;
//#region Internal Methods
function activate() {
logger.log(title + ' View Activated', null, title, true);
return true;
}
});
1 个解决方案
#1
0
ive answered a similar question here
我在这里回答了类似的问题
Make sure you include jquery ui in your bundle config. Then add a Attached (Durandal < 2 or viewAttached in Durandal 1.x) method to your viewmodel.
确保在bundle配置中包含jquery ui。然后在您的viewmodel中添加Attached(Durandal <2或在Durandal 1.x中的viewAttached)方法。
Hope this helps.
希望这可以帮助。
#1
0
ive answered a similar question here
我在这里回答了类似的问题
Make sure you include jquery ui in your bundle config. Then add a Attached (Durandal < 2 or viewAttached in Durandal 1.x) method to your viewmodel.
确保在bundle配置中包含jquery ui。然后在您的viewmodel中添加Attached(Durandal <2或在Durandal 1.x中的viewAttached)方法。
Hope this helps.
希望这可以帮助。