new bcdui.core.lifecycle.AutoRefresh(args)
core/lifecycle/autoRefresh.js, line 29
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args |
Object |
The parameter map contains the following properties:
|
Example
let arModel = myCube.getPrimaryModel().getPrimaryModel();
new bcdui.core.lifecycle.AutoRefresh({ model: arModel });
Members
-
staticbcdui.core.lifecycle.AutoRefresh.strategy
-
x Pre-defined strategies for activeIf and onModified arguments of AutoRefresh
Properties:
Name Type Description activeIf
Object Predefined callbacks for args.activeIf Properties
Name Type Description bcdIsAutoRefreshInFilter
function True if bRef 'bcdIsAutoRefresh' is part of f:Filter of the requestModel of an args.model being a SimpleModel modifiedIf
Object Predefined callbacks for args.modifiedIf Properties
Name Type Description wrsTs
function Check on /*/@ts onModified
Object Predefined callbacks for args.onModified Properties
Name Type Description applyAction
function Reload page if modification is found Example
new bcdui.core.lifecycle.AutoRefresh({ model: arModel, activeIf: bcdui.core.lifecycle.AutoRefresh.strategies.activeIf.bcdIsAutoRefreshInFilter });
Methods
-
isActive()
core/lifecycle/autoRefresh.js, line 76 -
Check whether we are still active according to args.activeIf