Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
senchatouch-notes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
senchatouch-notes
Commits
a00f8ee0
Commit
a00f8ee0
authored
Apr 15, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Sencha Touch TS:
Renamed stores
parent
2b41f33b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
11 deletions
+13
-11
app.js
www/app.js
+2
-2
UserNavigationController.js
www/app/controller/UserNavigationController.js
+3
-2
ContactStore.js
www/app/store/ContactStore.js
+1
-1
NoteStore.js
www/app/store/NoteStore.js
+1
-1
UserStore.js
www/app/store/UserStore.js
+3
-2
UserDetail.js
www/app/view/UserDetail.js
+1
-1
UserList.js
www/app/view/UserList.js
+2
-2
No files found.
www/app.js
View file @
a00f8ee0
Ext
.
application
({
name
:
'PO'
,
models
:
[
'Note'
],
stores
:
[
'Note
s'
,
'Users'
,
'Contacts
'
],
models
:
[
'Note'
,
'User'
],
stores
:
[
'Note
Store'
,
'UserStore'
,
'ContactStore
'
],
views
:
[
'UserList'
,
'UserDetail'
,
'BlogList'
,
'UserNavigationView'
],
controllers
:
[
'UserNavigationController'
],
...
...
www/app/controller/UserNavigationController.js
View file @
a00f8ee0
...
...
@@ -12,11 +12,12 @@ Ext.define('PO.controller.UserNavigationController', {
}
},
showDetail
:
function
()
{
showDetail
:
function
(
list
,
record
)
{
console
.
log
(
'disclose details'
);
var
view
=
this
.
getUserNavigationView
();
view
.
push
({
xtype
:
'userDetail'
xtype
:
'userDetail'
,
data
:
record
.
data
});
}
...
...
www/app/store/Contact
s
.js
→
www/app/store/Contact
Store
.js
View file @
a00f8ee0
Ext
.
define
(
'PO.store.Contact
s
'
,
{
Ext
.
define
(
'PO.store.Contact
Store
'
,
{
extend
:
'Ext.data.Store'
,
config
:
{
fields
:
[
'first_names'
,
'last_name'
],
...
...
www/app/store/Note
s
.js
→
www/app/store/Note
Store
.js
View file @
a00f8ee0
Ext
.
define
(
'PO.store.Note
s
'
,
{
Ext
.
define
(
'PO.store.Note
Store
'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'Ext.DateExtras'
,
config
:
{
...
...
www/app/store/User
s
.js
→
www/app/store/User
Store
.js
View file @
a00f8ee0
Ext
.
define
(
'PO.store.User
s
'
,
{
Ext
.
define
(
'PO.store.User
Store
'
,
{
extend
:
'Ext.data.Store'
,
requires
:
[
'PO.model.User'
],
config
:
{
fields
:
[
'first_names'
,
'last_name'
]
,
model
:
'PO.model.User'
,
autoLoad
:
true
,
sorters
:
'last_name'
,
...
...
www/app/view/UserDetail.js
View file @
a00f8ee0
...
...
@@ -6,7 +6,7 @@ Ext.define('PO.view.UserDetail', {
styleHtmlContent
:
true
,
scrollable
:
'vertical'
,
title
:
'User Details'
,
html
:
'Hello World
'
tpl
:
'Hello, {first_names}
'
}
});
www/app/view/UserList.js
View file @
a00f8ee0
Ext
.
define
(
'PO.view.UserList'
,
{
extend
:
'Ext.List'
,
xtype
:
'userList'
,
requires
:
[
'PO.store.User
s
'
],
requires
:
[
'PO.store.User
Store
'
],
config
:
{
...
...
@@ -11,7 +11,7 @@ Ext.define('PO.view.UserList', {
disclosure
:
true
,
grouped
:
true
,
indexBar
:
true
,
store
:
'User
s
'
,
store
:
'User
Store
'
,
onItemDisclosure
:
true
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment