WinJS.NamespacePage.define


Snippet Details

Shortcut
wne
Description
Define a new WinJS namespace with page events
Language
javascript
Types
Expansion
Author
Jeremie Corpinot
Upload on
11/1/2015 2:02:26 PM
Downloads
364

Declarations

ID ToolTip Default
namespace Namespace's name namespace
body1 Function's body // body1
path Page's location path 'path'

Code Output

        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$
        
        
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages