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
774f5f02
Commit
774f5f02
authored
12 years ago
by
LE GAC Renaud
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixed for IE.
parent
bcdc8498
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/plugin_dbui/src/basepanelwithselector.js
+23
-23
23 additions, 23 deletions
static/plugin_dbui/src/basepanelwithselector.js
with
23 additions
and
23 deletions
static/plugin_dbui/src/basepanelwithselector.js
+
23
−
23
View file @
774f5f02
/**
* A border layout with a panel and a selector.
*
* The selector is a collapsible panel appearing on the
* left/right/top/bottom side of the central panel.
*
* The selector is a collapsible panel appearing on the
* left/right/top/bottom side of the central panel.
* The selector contains a set of Fields usually organized in field sets.
* and two buttons Go and Reset.
*
*
* The configuration parameter selectorRegion defined the position
* of the selector with respect to the central panel. Value are those
* of the border layout: east, west, south and north.
* By default the selector is on the east side (right).
*
*
* The size of the selector is determined by selectorHeight and selectorWidth.
* The former works when the selectorRegion is north and south while
* the latter is for region west and east.
*
* The logic between the panel, the selector and the buttons
* the latter is for region west and east.
*
* The logic between the panel, the selector and the buttons
* is defined in inherited class.
*
*
* The type of this component is xpanelwithselector.
*
*
* @extend: Ext.Panel
*
*
*/
Ext
.
namespace
(
'
App
'
);
App
.
BasePanelWithSelector
=
Ext
.
extend
(
Ext
.
Panel
,
{
/**
* @param {Object} panel and selector configurations
*/
panelCfg
:
null
,
selectorCfg
:
null
,
/**
* configuration options for the border layout
*/
panelBorder
:
false
,
panelBorder
:
false
,
selectorCollapsible
:
true
,
selectorFrame
:
true
,
selectorHeight
:
300
,
...
...
@@ -54,13 +54,13 @@ App.BasePanelWithSelector = Ext.extend(Ext.Panel, {
* constructor
* @param {Object} config
*/
constructor
:
function
(
config
){
constructor
:
function
(
config
)
{
var
cfg
,
itemPanel
,
itemSelector
,
panel
,
selector
;
selector
;
Ext
.
apply
(
this
,
config
);
...
...
@@ -73,17 +73,17 @@ App.BasePanelWithSelector = Ext.extend(Ext.Panel, {
items
:
[
panel
],
region
:
'
center
'
};
// configure the selector item
selector
=
Ext
.
ComponentMgr
.
create
(
this
.
selectorCfg
);
itemSelector
=
{
buttons
:
[{
ref
:
'
../../goButton
'
,
ref
:
'
../../goButton
'
,
text
:
this
.
textGo
},
{
ref
:
'
../../resetButton
'
,
ref
:
'
../../resetButton
'
,
text
:
this
.
textReset
}],
}],
collapsible
:
this
.
selectorCollapsible
,
defaults
:
{
anchor
:
'
99%
'
},
frame
:
this
.
selectorFrame
,
...
...
@@ -93,9 +93,9 @@ App.BasePanelWithSelector = Ext.extend(Ext.Panel, {
items
:
[
selector
],
region
:
this
.
selectorRegion
,
split
:
this
.
selectorSplit
,
width
:
this
.
selectorWidth
,
width
:
this
.
selectorWidth
};
// configure the border layout
cfg
=
{
layout
:
'
border
'
,
...
...
@@ -103,7 +103,7 @@ App.BasePanelWithSelector = Ext.extend(Ext.Panel, {
};
Ext
.
apply
(
this
,
cfg
);
// instanciate the panel
App
.
BasePanelWithSelector
.
superclass
.
constructor
.
call
(
this
);
}
...
...
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