This post is a brief summary how we use Cairngorm 2 methodology for popups in Flex applications in the IT shop I work at:
- Three files are created for each popup:
- popup view
- Cairngorm event to initiate showing of the popup
- Cairngorm command to actually show the popup using PopupManager
- Any data that needs to be passed to the popup is attached to the event.
- When user closes the popup, the popup view simply removes itself from PopupManager.
- The results of the popup, if any, are updated (can be done via data binding) in the ModelLocator, to which other controlls are bound as well, if needed.
No comments:
Post a Comment