Common Panel Properties and Methods
Common Panel Properties and Methods
All panels defined in the view are represented by JavaScript objects that extend the
Ab.view.Component
class. The base class provides properties and methods that can be universally used with any panel.
Common panel properties:
Property | Type | Description |
---|---|---|
type | String |
Panel type:
form
,
console
,
grid
,
tree
,
view
, etc.
|
id | String | Panel id as defined in AXVW. |
parentEl | Ext.Element | Panel top-level DOM element. |
restriction | Ab.view.Restriction | Restriction applied to the panel by another part of the view. |
visible | Boolean |
If
true
, the panel is currently visible.
|
actions | Ext.util.MixedCollection |
Contains
Ab.view.Action
objects for all panel-level actions.
|
Common panel methods:
Method | Description | Parameters |
---|---|---|
clear() | Clears the panel data content. | |
refresh(restriction) |
Refreshes the panel data content from the server. If the
|
|
addParameter( name, value) |
Adds a named parameter value to the panel. All added parameters will be sent to the server during the next
refresh()
call. The server-side workflow rules may use these parameters.
|
name
: parameter name;
value
: parameter value;
|
show( visible, includeHeader) | Shows or hides the panel. |
|
setTitle(title) | Sets the panel title text. |
title
: localized title text;
|
appendTitle(title) | Appends text to the original panel title defined in AXVW. |
title
: localized title text;
|
addActionListener( actionId, callback, scope); | Registers application function as a listener for specified panel-level action button. |
|
addEventListener( eventName, callback, scope); | Registers application function as a listener for specified panel event. |
|
addDragDropListener( callback, scope); |
Registers the panel area as a drag drop target, and registers specified application function as a listener for drop operation. The callback function signature should match:
where
|
|
addDragOverListener( callback, scope); |
Registers the panel area as a drag drop target, and registers specified application function as a listener for drag-over operation. The callback function signature should match
|
|