TODO find a way to populate fields of RiderCardDrawer vie (binding ?)

This commit is contained in:
2025-12-15 14:02:05 +01:00
parent da6a89c848
commit ca48bf8bc9
9 changed files with 100 additions and 31 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ class AppModelLocator extends EventDispatcher implements IModelLocator {
public static final VIEWING_CHANGE:String = "viewingChange";
public static final RIDERS_LIST_DP_CHANGE:String = "ridersListDPChange";
public static final DRAWER_STATE_CHANGE:String = "drawerStateChange";
public static final RIDER_SELECT:String = "riderSelect";
public static final RIDER_SELECT_CHANGE:String = "riderSelectChange";
// this instance stores a static reference to itself
private static var model:AppModelLocator;
@@ -50,7 +50,7 @@ class AppModelLocator extends EventDispatcher implements IModelLocator {
private function set_selectedRider(pRider:RiderVO):RiderVO {
selectedRider = pRider;
dispatchEvent(new Event(AppModelLocator.RIDER_SELECT));
dispatchEvent(new Event(AppModelLocator.RIDER_SELECT_CHANGE));
return selectedRider;
}