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
6ed19bc9
Commit
6ed19bc9
authored
Apr 14, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Sencha Timeshet:
added a contacts store as an example
parent
44f1810c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
app.js
www/app.js
+2
-15
app.json
www/app.json
+1
-1
Contacts.js
www/app/store/Contacts.js
+18
-0
No files found.
www/app.js
View file @
6ed19bc9
...
...
@@ -2,7 +2,7 @@
Ext
.
application
({
name
:
'PO'
,
models
:
[
'Note'
],
stores
:
[
'Notes'
],
stores
:
[
'Notes'
,
'Contacts'
],
requires
:
[
'Ext.MessageBox'
,
...
...
@@ -77,20 +77,7 @@ Ext.application({
Ext
.
Msg
.
alert
(
'Disclose'
,
'Disclose more info for '
+
record
.
get
(
'firstName'
));
},
store
:
Ext
.
create
(
'Ext.data.Store'
,
{
fields
:
[
'firstName'
,
'lastName'
],
sorters
:
'firstName'
,
autoLoad
:
true
,
grouper
:
{
groupFn
:
function
(
record
)
{
return
record
.
get
(
'firstName'
)[
0
];
}
},
proxy
:
{
type
:
'ajax'
,
url
:
'contacts.json'
}
})
store
:
'Contacts'
},
{
title
:
'Contact'
,
...
...
www/app.json
View file @
6ed19bc9
...
...
@@ -2,7 +2,7 @@
"name"
:
"List"
,
"js"
:
[
{
"path"
:
"/senchatouch-v211/sencha-touch-all.js"
"path"
:
"/senchatouch-v211/sencha-touch-all
-debug
.js"
},
{
"path"
:
"app.js"
,
...
...
www/app/store/Contacts.js
0 → 100644
View file @
6ed19bc9
Ext
.
define
(
'PO.store.Contacts'
,
{
extend
:
'Ext.data.Store'
,
config
:
{
fields
:
[
'firstName'
,
'lastName'
],
sorters
:
'firstName'
,
grouper
:
{
groupFn
:
function
(
record
)
{
return
record
.
get
(
'firstName'
)[
0
];
}
},
data
:
[
{
firstName
:
'Ed'
,
lastName
:
'Spencer'
},
{
firstName
:
'Tommy'
,
lastName
:
'Maintz'
},
{
firstName
:
'Aaron'
,
lastName
:
'Conran'
},
{
firstName
:
'Jamie'
,
lastName
:
'Avins'
}
]
}
});
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