Metadata
- Source
- SJRK-451
- Type
- Improvement
- Priority
- Minor
- Status
- Open
- Resolution
- N/A
- Assignee
- N/A
- Reporter
- Gregor Moss
- Created
2021-02-22T15:27:39.461-0500 - Updated
2021-02-22T15:40:25.161-0500 - Versions
- N/A
- Fixed Versions
- N/A
- Component
- N/A
Description
With recent updates to Infusion, the ability to control DOM element visibility from a model relay has become available. Update all modelListener records that are used to control an element's visibility to use this method instead.
Before:
modelListeners: {
progressAreaVisible: {
this: "{loginUi}.dom.progressArea",
method: "toggle",
args: ["{change}.value"],
namespace: "progressAreaVisibleChange"
}
}
After:
modelRelay: {
progressAreaVisibleChange: {
source: "progressAreaVisible",
target: "{loginUi}.dom.progressArea.visible"
}
}
Please note the syntax outlined above does not work as-is. There may be some in-progress documentation about this feature, or it may be forthcoming with a future Infusion release (perhaps 4.* or 5.*)