Skip to main content
Inspiring
October 15, 2008
Question

Handling Visual Changes in a Cairngorm Application

  • October 15, 2008
  • 1 reply
  • 635 views
I was wondering if there are any suggestions/best practices for how to handle visual changes in a Cairngorm Application.

I am currently working on a Cairngorm Application with many moving parts - Trees, Lists, ViewStacks with ViewStacks as children. I want the application to be able to change visually based on some user actions - no real business logic involved. For instance, I have a menu that has options for displaying PopUps, or making hidden Panels visible. Right now, I am using Events all over the place to bubble up to the appropriate parent component.

Does it make sense to have properties in the Model that control the visual aspects of the Application?

Any thoughts are greatly appreciated.

Thank you.
This topic has been closed for replies.

1 reply

Inspiring
October 16, 2008
Absolutly, I think.
We bind, for instance, the enabled property of many controls to {model.loginOK} for instance, or control visible/includeInLayout with {model.userRole=='admin'}.