IgniteEngine-iOS icon indicating copy to clipboard operation
IgniteEngine-iOS copied to clipboard

Investigate feasibility of using control IDs to add event listeners to other controls

Open brandonscript opened this issue 10 years ago • 0 comments

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
    }
}

brandonscript avatar Apr 20 '15 21:04 brandonscript