The
Menu.modelChanged
The
eventName
Data-aware components use this information to avoid completely refreshing the
component instance (view) that is using the data provider. The
supports the following values:
updateAll
A series of items has been added.
addItems
removeItems
updateItems
The data has been sorted.
sort
updateField
updateColumn
filterModel
scroll position).
schemaLoaded
The index of the first affected item.
firstItem
The index of the last affected item. The value equals
lastItem
item is affected.
An array of the item identifiers that were removed.
removedIDs
A string indicating the name of the field that is affected.
fieldName
For more information, see
Example
In the following example, a handler called
addEventListener()
handler in the
modelChanged
statement is sent to the Output panel.
trace
listener = new Object();
listener.modelChanged = function(evt){
trace(evt.eventName);
}
myList.addEventListener("modelChanged", listener);
324
DataProvider API
event's event object has five additional properties:
property is used to subcategorize
eventName
The entire view needs refreshing, excluding scroll position.
A series of items has been deleted.
A series of items needs refreshing.
A field in an item must be changed and needs refreshing.
An entire field's definition in the data provider needs refreshing.
The model has been filtered, and the view needs refreshing (reset the
The field's definition of the data provider has been declared.
"EventDispatcher class" on page
as the second parameter. The event object is captured by the
parameter. When the
evt
499.
is defined and passed to
listener
modelChanged
events.
modelChanged
property
eventName
if only one
firstItem
event is broadcast, a
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers