Advertisement
Guest User

Blah.js

a guest
Nov 23rd, 2012
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Ext.define( 'CallList.view.Blah', {
  2.    
  3.     extend: 'Ext.Container',
  4.    
  5.     alias: 'widget.blah',
  6.    
  7.     config: {
  8.         title: 'Blah',
  9.         iconCls: 'trash',
  10.        
  11.         styleHtmlContent: true,
  12.         scrollable: true,
  13.        
  14.         items: [
  15.             {
  16.                 docked: 'top',
  17.                 xtype: 'titlebar',
  18.                 title: 'Blah'
  19.             },
  20.             {
  21.                 xtype: 'button',
  22.                 text: 'Notification',
  23.                 handler: function() {
  24.                     alert( navigator );
  25.                     alert( navigator.notification );
  26.                 }
  27.             }
  28.         ]
  29.     }
  30.    
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement