IgniteEngine-iOS
IgniteEngine-iOS copied to clipboard
Investigate feasibility of using control IDs to add event listeners to other controls
Currently in order to have an event, you need to specify it in the actions array of a control or datasource.
Let's look at allowing you to define an event on a completely different control that listens to the events of the target. For example:
{
"_id": "mapControl",
"_type": "Map",
"actions": [
{
"_target": "$self",
"_type": "Refresh",
"on": "myMapDatasource.success"
}
],
"attributes": {
"animatePinDrop.enabled": true,
"center.lat": "38.189396",
"center.long": "-120.705327",
"dataprovider.id": "myMapDatasource",
"datarow.basepath": "entities",
"pin": {
"lat": "[[$row.location.latitude]]",
"long": "[[$row.location.longitude]]"
},
"size.h": "100%",
"size.w": "100%",
"userLocation.enabled": true,
"zoomLevel": 5
}
}