Sha256: 7a354be4b3784232b8f9464f8d0252cf906da60529e9a1038e1a8ffbc354d378

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

/**
 * @class MyApp.views.<%= @namespace %>.<%= @class_name %>
 * @extends Ext.Panel
 * Default Welcome to Ext MVC Panel - replace this with your own thing
 */
ExtMVC.registerView('<%= @namespace %>', '<%= @name %>', {
  xtype: 'panel',
  
  initComponent: function() {
    Ext.applyIf(this, {
      title: "Welcome to Ext MVC",
      html:  "This is the <%= @name %> view which is found in <%= @filename %>."
    });
    
    Ext.Panel.prototype.initComponent.apply(this, arguments);
  }
});

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
xmvc-0.1.12 lib/xmvc/generators/templates/View.js
xmvc-0.1.11 lib/xmvc/generators/templates/View.js
xmvc-0.1.10 lib/xmvc/generators/templates/View.js
xmvc-0.1.9 lib/xmvc/generators/templates/View.js
xmvc-0.1.8 lib/xmvc/generators/templates/View.js
xmvc-0.1.7 lib/xmvc/generators/templates/View.js
xmvc-0.1.6 lib/xmvc/generators/templates/View.js
xmvc-0.1.5 lib/xmvc/generators/templates/View.js
xmvc-0.1.4 lib/xmvc/generators/templates/View.js
xmvc-0.1.3 lib/xmvc/generators/templates/View.js
xmvc-0.1.2 lib/xmvc/generators/templates/View.js
xmvc-0.1.1 lib/xmvc/generators/templates/View.js
xmvc-0.1.0 lib/xmvc/generators/templates/View.js