Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
Showing with 57 additions and 21 deletions.
  1. +9 −0 app/view/Action.js
  2. +9 −0 app/view/Home.js
  3. +12 −21 app/view/Main.js
  4. +9 −0 app/view/More.js
  5. +9 −0 app/view/Search.js
  6. +9 −0 app/view/Settings.js
View
9 app/view/Action.js
@@ -0,0 +1,9 @@
+Ext.define('Sencha.view.Action', {
+ extend: 'Ext.Panel',
+ xtype: 'actioncard',
+
+ config: {
+ iconCls: 'action',
+ title: 'Action',
+ }
+});
View
9 app/view/Home.js
@@ -0,0 +1,9 @@
+Ext.define('Sencha.view.Home', {
+ extend: 'Ext.Panel',
+ xtype: 'homecard',
+
+ config: {
+ iconCls: 'home',
+ title: 'home',
+ }
+});
View
33 app/view/Main.js
@@ -1,5 +1,12 @@
Ext.define('Sencha.view.Main', {
extend: 'Ext.TabPanel',
+ requires: [
+ 'Sencha.view.Home',
+ 'Sencha.view.Search',
+ 'Sencha.view.Action',
+ 'Sencha.view.Settings',
+ 'Sencha.view.More'
+ ],
config: {
tabBar: {
@@ -13,27 +20,11 @@ Ext.define('Sencha.view.Main', {
styleHtmlContent: true
},
items: [
- {
- title: 'Home',
- iconCls: 'home',
- badgeText: '1'
- },
- {
- title: 'Search',
- iconCls: 'search'
- },
- {
- title: 'Action',
- iconCls: 'action'
- },
- {
- title: 'Settings',
- iconCls: 'settings'
- },
- {
- title: 'More',
- iconCls: 'more'
- },
+ { xtype: 'homecard' },
+ { xtype: 'searchcard' },
+ { xtype: 'actioncard' },
+ { xtype: 'settingscard' },
+ { xtype: 'morecard' }
]
}
});
View
9 app/view/More.js
@@ -0,0 +1,9 @@
+Ext.define('Sencha.view.More', {
+ extend: 'Ext.Panel',
+ xtype: 'morecard',
+
+ config: {
+ iconCls: 'more',
+ title: 'More',
+ }
+});
View
9 app/view/Search.js
@@ -0,0 +1,9 @@
+Ext.define('Sencha.view.Search', {
+ extend: 'Ext.Panel',
+ xtype: 'searchcard',
+
+ config: {
+ iconCls: 'search',
+ title: 'Search',
+ }
+});
View
9 app/view/Settings.js
@@ -0,0 +1,9 @@
+Ext.define('Sencha.view.Settings', {
+ extend: 'Ext.Panel',
+ xtype: 'settingscard',
+
+ config: {
+ iconCls: 'settings',
+ title: 'Settings',
+ }
+});

No commit comments for this range

Something went wrong with that request. Please try again.