Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
0e86e554
Commit
0e86e554
authored
Nov 13, 2016
by
LE GAC Renaud
Browse files
Update ui_events.py to display event models via a grid.
parent
dd427c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
models/ui_events.py
models/ui_events.py
+22
-1
No files found.
models/ui_events.py
View file @
0e86e554
...
...
@@ -8,7 +8,10 @@
#
#-------------------------------------------------------------------------------
fieldsModifier
=
dbui
.
FieldsModifier
(
'events'
)
fieldsModifier
.
configure_field
(
'data'
,
xtype
=
'xuserdata'
)
fieldsModifier
.
configure_field
(
'data'
,
colProperty
=
{
'width'
:
70
},
colType
=
{
'width'
:
70
},
xtype
=
'xuserdata'
)
#-------------------------------------------------------------------------------
#
...
...
@@ -25,6 +28,24 @@ formModifier.configure(plugins=['pUserDataConsistency'], width=450)
#-------------------------------------------------------------------------------
gridModifier
=
dbui
.
GridModifier
(
'events'
)
gridModifier
.
configure_column
(
'event'
,
width
=
30
)
gridModifier
.
hide_columns
(
'data'
)
row_widget
=
{
'ptype'
:
'rowwidget'
,
'widget'
:
{
'xtype'
:
'xuserdata'
,
'bind'
:
{
'value'
:
'{record.EventsData}'
},
'defaults'
:
{
'anchor'
:
'90%'
},
'colProperty'
:
{
'width'
:
80
},
'colType'
:
{
'width'
:
80
},
'padding'
:
'10 0 12 50'
,
'readOnly'
:
True
}
}
gridModifier
.
configure
(
plugins
=
[
row_widget
])
#-------------------------------------------------------------------------------
#
...
...
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