Skip to content

Instantly share code, notes, and snippets.

@dbouwman
Created February 24, 2013 23:04
Show Gist options
  • Save dbouwman/5026151 to your computer and use it in GitHub Desktop.
Save dbouwman/5026151 to your computer and use it in GitHub Desktop.
Snippet showing how the layout is created, and how we setup the regions which are nodes in the layout's template
var LayerListLayoutView = Backbone.Marionette.Layout.extend({
template: "#layer-list-template",
//define the regions using selectors for nodes
//inside the layout's template
regions: {
layerListRegion: "#layer-list",
basemapRegion: "#basemap-list"
},
events:{'click #layer-list-close':'closeView'},
closeView:function(){
Viewer.vent.trigger('View:LayerList:Hide');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment