Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2pext
plugin_dbui
Commits
2545ad74
Commit
2545ad74
authored
16 years ago
by
Renaud Le Gac
Browse files
Options
Downloads
Patches
Plain Diff
First GridPanel implementation.
parent
e881ea1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
static/uijs/vieweditdistributions.js
+59
-0
59 additions, 0 deletions
static/uijs/vieweditdistributions.js
with
59 additions
and
0 deletions
static/uijs/vieweditdistributions.js
+
59
−
0
View file @
2545ad74
...
@@ -7,3 +7,62 @@
...
@@ -7,3 +7,62 @@
*
*
*/
*/
Ext
.
onReady
(
function
(){
Ext
.
QuickTips
.
init
();
//define the datastore
var
mystore
=
new
Ext
.
data
.
JsonStore
({
url
:
'
/mdvPostInstall/database/select?table=distributions
'
,
fields
:
[
'
id
'
,
'
version
'
,
'
note
'
,
'
date
'
]
});
//define the columns model
var
mymodel
=
new
Ext
.
grid
.
ColumnModel
([
new
Ext
.
grid
.
RowNumberer
(),
{
header
:
"
Id
"
,
width
:
10
,
sortable
:
true
,
dataIndex
:
'
id
'
,
hidden
:
true
},
{
header
:
"
Version
"
,
width
:
15
,
sortable
:
true
,
dataIndex
:
'
version
'
},
{
header
:
"
Note
"
,
width
:
70
,
sortable
:
true
,
dataIndex
:
'
note
'
},
{
header
:
"
Date
"
,
width
:
20
,
sortable
:
true
,
dataIndex
:
'
date
'
}
]);
var
grid3
=
new
Ext
.
grid
.
GridPanel
({
store
:
mystore
,
cm
:
mymodel
,
viewConfig
:
{
forceFit
:
true
},
// inline buttons
buttons
:
[{
text
:
'
Save
'
},{
text
:
'
Cancel
'
}],
buttonAlign
:
'
right
'
,
// inline toolbars
tbar
:[{
text
:
'
Add Something
'
,
tooltip
:
'
Add a new row
'
,
iconCls
:
'
add
'
},
'
-
'
,
{
text
:
'
Options
'
,
tooltip
:
'
Blah blah blah blaht
'
,
iconCls
:
'
option
'
},
'
-
'
,{
text
:
'
Remove Something
'
,
tooltip
:
'
Remove the selected item
'
,
iconCls
:
'
remove
'
}],
frame
:
true
,
autoExpandColumn
:
'
note
'
,
width
:
600
,
height
:
300
,
title
:
'
Distributions
'
,
iconCls
:
'
icon-grid
'
,
renderTo
:
document
.
body
});
grid3
.
getStore
().
load
();
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment