-
Shortcut
-
wne
-
Description
-
Define a new WinJS namespace with page events
-
Language
-
javascript
-
Types
-
Expansion
-
Author
-
Jeremie Corpinot
-
Upload on
-
1-11-2015 14:02:26
-
Downloads
-
1943
ID
|
ToolTip
|
Default
|
namespace
|
Namespace's name
|
namespace
|
body1
|
Function's body
|
// body1
|
path
|
Page's location path
|
'path'
|
WinJS.Namespace.define("$namespace$", {
$body1$
});
(function () {
"use strict";
WinJS.UI.Pages.define("$path$", {
ready: function (element, options) {
// TODO: Called when the page is loaded
},
unload: function () {
// TODO: Fired when we navigate outside this page
},
updateLayout: function (element) {
// TODO: Must be fired when the layout changes
}
});
})();$end$