Before we proceed, it is worth noting that Sidecar is a combination of open source JavaScript libraries, including jQuery, Backbone and Underscore, among others. Thus, when we talk about Sidecar, what we are really talking about is the consolidated result of these technologies.
Bearing that in mind, the article referenced at the top of this post speaks to code relating to customizations that we can apply to change a portion of the MVC client. Another portion of that same client adds some magic behind the scenes to tie together the actions occurring on the interface with the backend.
Although we would not be modifying this code, it is worth studying it as it provides us some really good insights into the manner in which the Sidecar technology implements the Sugar object model and framework. But as with the previous post, this task is far easier to accomplish if we have access to the un-minified sources.
Below is a listing of files you should find helpful in your continued learning about Sugar 7 and Sidecar:
Sugar Object |
Un-minified Source Folder
|
ACL, Controller, Metadata, User
|
/sidecar/src/core/
|
SugarBean, Validations
|
/sidecar/src/data/
|
Data Formatting, Logger
|
/sidecar/src/utils/
|
Handlebars Helpers, Views, Alerts
|
/sidecar/src/view/
|
Give those folders a look and share any gems you find within the comments.